Блог пользователя Hazemshehaway

Автор Hazemshehaway, история, 3 года назад, По-английски

I know why it is time limit error, but why both two codes failed in two different test cases I only changed cin/cout to printf/scanf ؟؟؟

code 1 code2

  • Проголосовать: нравится
  • -3
  • Проголосовать: не нравится

»
3 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

You can check this link to understand the difference also add these two lines to your template if you want to use cin/cout as they make them run faster

ios::sync_with_stdio(0); cin.tie(0),cout.tie(0);