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

Автор phyzzmat, история, 20 месяцев назад, По-русски

Hello everyone! Haven't written for a very, very long time here.

Soon I'm planning to go on a trip to Argentina. There, I'm planning to visit Ushuaia, which is essentially the southernmost city in the world (with population more than 10k people). At almost 54.81 degrees southern latitude, I will probably claim the record of the southernmost participation, unless someone took part in the round in the Antarctic.

Also, sometime I would like to visit Longyearbyen, Norway (77 degrees northern latitude). Probably, I will participate in a round there just for the fun of it ;)

Now that I haven't done any of these two, it would be very interesting for me to read the comments and, probably, hear about the current records! If you live somewhere on the very south (or north) of the world and have participated in some round on Codeforces, I would be really interested to hear about it!

Полный текст и комментарии »

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

Автор phyzzmat, история, 5 лет назад, По-английски

This is my solution for problem 1234D.

The code gets AC, but I have one question:

My question

Полный текст и комментарии »

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

Автор phyzzmat, история, 5 лет назад, По-русски

In many rounds, nearly half of the top-10 (or even more) is occupied by unrated newly-registered accounts. For instance, three out of five winners of Div. 2 today were unrated before the round. Since the potential rating of such people is much higher than the maximum Div. 2 threshold, I believe it would be fair to exclude unrated accounts from the official standings table.

One can be 90+% sure that these accounts are not first accounts, but smurfs.

All in all, I think it would be much more interesting to see real Div. 2 participants, who improved enough to achieve high results, among winners in the standings table and round announcements, instead of one-day accounts created by masters and grandmasters.

What is your opinion on this issue?

Полный текст и комментарии »

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

Автор phyzzmat, история, 5 лет назад, По-английски

Hello everyone. Previously I was more of a Python programmer, but now I am trying to expand my knowledge of C++, so I am solving tasks in it more and more frequently. Today I experienced a strange issue with task 1194C - From S To T.

The solution — 57031662 — I wrote returned WA2, and no minor changes seemed to alleviate the problem (which cost me a lot of time). After 20 unsuccessful minutes of trying to zero in on the bug, I just coded the same thing in Python — 57047262 — and it AC'd flawlessly.

The specific test case I am getting an error on is the following:

acefhjlnprtvxz abcdedfghijklmnopqrstuvwxyzabcdedfghijklmnopqrstuvwxyz abcdedfghijklmnopqrstuvwxyzabcdedfghijklmnopqrstuvwxyz

"YES" is expected, whereas the program outputs "NO". However, the C++ submission answers this test case correctly when run locally, while giving another output on Codeforces.

Could you please help me locate the problem? P.S. We are all human and prone to making mistakes, so I am not excluding the possibility that I missed something very obviously wrong.

upd: Thanks. Problem solved. I was extremely stupid to miss such a thing. Fun thing: actually, test case 28 ran correctly on CF. It was simply a redundant "no" from test 27 which messed up the order of answers, therefore I started thinking that the issue is more complex than it is.

Полный текст и комментарии »

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