Блог пользователя SecondThread

Автор SecondThread, история, 4 месяца назад, По-английски

Problem D of Codeforces Round #224 has incorrectly rendered samples for me. (Chrome on Mac). There are curly braces in the output for samples 2, 4, and 5. These are not in the actual data, they are just on the website.

Here is the second sample:

3 4
####
#>^{}#
####

The curly braces are not supposed to be there. I know there have since been updates to how samples are rendered (showing different backgrounds for adjacent test cases within the same sample, for example), so I suspect this may have broken in one of those updates.

Not sure where to post this, so thought I'd flag it here.

  • Проголосовать: нравится
  • +28
  • Проголосовать: не нравится

»
4 месяца назад, # |
  Проголосовать: нравится +15 Проголосовать: не нравится

It probably doesn't have anything to do with your own system, I have the same bug on Windows 10 Chrome, Firefox and Edge.

»
4 месяца назад, # |
  Проголосовать: нравится +10 Проголосовать: не нравится

same on Linux Chromium

»
4 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Reproduced in Windows 11 Firefox, I think the characters used in the sample might have triggered some escape mechanisms at the backend.

»
4 месяца назад, # |
Rev. 2   Проголосовать: нравится +2 Проголосовать: не нравится

Thank you. It appears that the issue was not the result of https://codeforces.com/blog/entry/105779 However, it can be seen here https://web.archive.org/web/20210416021306/http://codeforces.com:80/contest/382/problem/D

Thus, the incorrect rendering has been occurring for at least three years.

The most challenging aspect of addressing such bugs isn't the backend repair but ensuring backward compatibility. Fixing this might impact other problems that depend on the current behavior.

A probably better solution would be to correct such issues in Polygon.

Do you know of any other incidents involving similar problems?