Found a strange thing while compiling with c++17(64bit) and c++17

Правка en1, от Parvej, 2022-02-19 12:50:09

While solving this problem 1359C - Mixing Water . I observed a strange thing.

The same code is giving different outputs on different compilers. WA- 146913145 AC- 146915566

I found the test case for which the compilers gave different outputs.

Test Case

for this test case, c++17(64bit) is giving 499979 as output. but c++17 is giving 499981 as output which is as same as correct output.

I want to say that my outputs are compared to the outputs of the authors' solution which was run on c++17. But my solutions should be compared to the outputs which were run on c++17(64bit).

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Parvej 2022-02-19 12:50:09 767 Initial revision (published)