What's wrong with my code or codeforces?
Difference between en6 and en7, changed 63 character(s)
I met with some weird problems when solving https://mirror.codeforces.com/contest/1599/problem/C ↵
The question is simple, but plz take a look at these 4 submissions below:↵

### Case 1:↵

https://mirror.codeforces.com/contest/1599/submission/133010155↵

https://mirror.codeforces.com/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://mirror.codeforces.com/contest/1599/submission/133012557↵

https://mirror.codeforces.com/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?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en7 English zhugezy 2021-10-25 11:12:47 63 (published)
en6 English zhugezy 2021-10-25 11:11:39 12
en5 English zhugezy 2021-10-25 11:10:57 12 Tiny change: 'rmation.\n\nCase 2:\' -> 'rmation.\n//\nCase 2:\'
en4 English zhugezy 2021-10-25 11:10:31 10 Tiny change: 'rmation.\n\nCase 2:\' -> 'rmation.\n//\nCase 2:\'
en3 English zhugezy 2021-10-25 11:10:12 2 Tiny change: 'rmation.\n\nCase 2:\' -> 'rmation.\n//\nCase 2:\'
en2 English zhugezy 2021-10-25 11:09:55 148
en1 English zhugezy 2021-10-25 11:08:35 930 Initial revision (saved to drafts)