Very strange c++ behavior

Правка en1, от andrewgopher, 2025-06-26 03:04:49

2 submissions I made on 1336E1 - Chiori and Doll Picking (easy version):

WA 4 — 326065780

AC — 326065791

You can check the diff between these two files; exp & 1ll becomes exp & 1 in the AC submission.

Even more weirdly, after I cleaned up some debugging stuff (most of which was already commented out!), I get AC whether or not I put ll.

326065940 326065935

What is going on

Теги c++, undefined behavior

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский andrewgopher 2025-06-26 03:04:49 458 Initial revision (published)