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

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

In yesterday's div-3 (Round #756) I got WA on test 2 in problem C when I submitted it in GNU C++ 14 and now the same code gives AC when I submitted it in GNU C++ 17 (64 bit). Can anyone explain why this is happening? Link to Submission: WA Code(C++ 14) : https://codeforces.com/contest/1611/submission/136859793. AC Code(C++ 17-64 bit) : https://codeforces.com/contest/1611/submission/136967042. Both the codes are exactly same .

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

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

Remove these `#pragma GCC optimize("Ofast,unroll-loops") #pragma GCC target("avx,avx2,fma")`

lines. It'll be accepted in GNU C++ 14 too.