9465번 - 스티커
시간차이가 어디서 나는지 궁금합니다.
scanf로 풀었을 때와 cin으로 풀었을 때
//(option)
ios::sync_with_stdio(false); cin.tie(NULL);
를 적용시키면 cin이 scanf보다 속도가 더 빠른가요??
제 코드에서 둘다 실행 시켰을 때 option을 적용시킨 cin이 scanf보다 빨랐습니다.
https://www.acmicpc.net/blog/view/56
Green55님, 답변 감사합니다.
댓글을 작성하려면 로그인해야 합니다.
parkyh8618 3년 전
시간차이가 어디서 나는지 궁금합니다.
scanf로 풀었을 때와 cin으로 풀었을 때
//(option)
ios::sync_with_stdio(false);
cin.tie(NULL);
를 적용시키면 cin이 scanf보다 속도가 더 빠른가요??
제 코드에서 둘다 실행 시켰을 때 option을 적용시킨 cin이 scanf보다 빨랐습니다.