RodionGork's blog

By RodionGork, 4 months ago, In English

Hi Friends!

UPD: the issue described below is clear now and could be traced to some waving reports on the Go itself — their Scanf seemingly mistreats \r\n and Codeforces for some reason still uses windows line ending format.


Could please someone cast a look and help me with debugging curious little issue: 278470193

You see, the code is straightforward — reads number of testcases in t, then on every loop reads number of points in p and points themselves into pts array.

I added debug output after YES and NO answer and see the values were read incorrectly. Most probably I don't know or remember something about feeding input at Codeforces to my code? Needless to say, when I run code locally it works fine.

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