What's wrong with my code or codeforces?

Правка en1, от zhugezy, 2021-10-25 11:08:35

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.

Теги compilers, bug report, issue, strange behavoiur

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en7 Английский zhugezy 2021-10-25 11:12:47 63 (published)
en6 Английский zhugezy 2021-10-25 11:11:39 12
en5 Английский zhugezy 2021-10-25 11:10:57 12 Tiny change: 'rmation.\n\nCase 2:\' -> 'rmation.\n//\nCase 2:\'
en4 Английский zhugezy 2021-10-25 11:10:31 10 Tiny change: 'rmation.\n\nCase 2:\' -> 'rmation.\n//\nCase 2:\'
en3 Английский zhugezy 2021-10-25 11:10:12 2 Tiny change: 'rmation.\n\nCase 2:\' -> 'rmation.\n//\nCase 2:\'
en2 Английский zhugezy 2021-10-25 11:09:55 148
en1 Английский zhugezy 2021-10-25 11:08:35 930 Initial revision (saved to drafts)