andrewgopher's blog

By andrewgopher, history, 10 months ago, In English

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

  • Vote: I like it
  • +45
  • Vote: I do not like it

»
10 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I think its because exp can be a long long, but im not sure

»
10 months ago, hide # |
Rev. 2  
Vote: I like it +102 Vote: I do not like it

I think you typed 111 instead of 1ll

»
10 months ago, hide # |
 
Vote: I like it -28 Vote: I do not like it

Preprocessing directives don't work when we do things like stoi() atoi()