Very strange c++ behavior

Revision en1, by 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

Tags c++, undefined behavior

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English andrewgopher 2025-06-26 03:04:49 458 Initial revision (published)