Codeforces and Polygon may be unavailable from May 23, 4:00 (UTC) to May 23, 8:00 (UTC) due to technical maintenance. ×
Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

devit121's blog

By devit121, history, 3 years ago, In English

I've been trying to do this problem, but it keeps failing on the 2nd test on my computer it gives the correct answer, but when I try to submit it fails. I tried to work around that test case and failed on the 3rd one so what am I doing wrong? It's standard input/output. here's my code:

also, this is my first post so I apologize if some janky sh!t happens

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it