I met with some weird problems when solving https://codeforces.net/contest/1599/problem/C The question is simple, but plz take a look at these 4 submissions below:
Case 1:
https://codeforces.net/contest/1599/submission/133010155
https://codeforces.net/contest/1599/submission/133010068
The only difference is the "inline" of the function double mypr
.
Take a look at the test cases for more information.
Case 2:
https://codeforces.net/contest/1599/submission/133012557
https://codeforces.net/contest/1599/submission/133012618
The only difference is the "cout" line in function int solve
.
Also take a look at the test cases for more information.
Compiler: GNU G++14 6.4.0
Everything works fine on my local environment, G++11/14 or else.
So is there any problem with codeforces, or is it my fault?