뭔지 잘 몰라서 그냥 무지성 scanf printf 썼었는데
저것만 바꾸니까 8초대 나오던거 6초대 뜨네
scanf가 더 빠를텐데
scanf, printf 보다 빠를순 없을텐데 그냥 빠르고 편하니까 쓰는거지
cin.tie(0) 안 쓰는 cin, cout << scanf, printf < cin.tie(0) 쓰는 cin, cout
cin.tie(0)->sync_with_stdio(0)이게 scanf보다 빠름
싱크끊고 tie 하면 cin cout이 제일빠름
아물론 fastio가 더빠르긴하지만
scanf가 더 빠를텐데
scanf, printf 보다 빠를순 없을텐데 그냥 빠르고 편하니까 쓰는거지
cin.tie(0) 안 쓰는 cin, cout << scanf, printf < cin.tie(0) 쓰는 cin, cout
cin.tie(0)->sync_with_stdio(0)이게 scanf보다 빠름
싱크끊고 tie 하면 cin cout이 제일빠름
아물론 fastio가 더빠르긴하지만