Problem link:
PERCAPTA
Compiler used : C++14(gcc 6.3)
Using ios_base :: sync_with_stdio(false);cin.tie(NULL);
gives RUNTIME ERROR on the following submission:
34638653
I haven’t even used any scanf/printf
after declaring ios_base :: sync_with_stdio(false);cin.tie(NULL);
as it could have caused some errors as the streams are untied(scanf and cin ; printf and cout
).
After removing this part the same code gets ACCEPTED:
34638325
Note : while using C++17
with gcc9.1
no such RE verdict is received.