Getting WA Codeforces 642(Div. 3) Question C

  1. Format your code, or link your submissions (better option)
  2. There’s literally only one thing this can be considering how small the change is, and it’s overflow. Be careful with int (it’s generally not a bad idea to never use it). Your first submission passes because the 1LL casts it to a long long, which can fit the numbers.
1 Like