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

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

submisson1 and submission2 are almost the same Only thing I did is remove the "#define"s Do they really produce that much of an overhead? If yes, why do people have it in the first place I thought these were resolved at the compile time, run time shouldn’t be affected at all ! Can anyone help me out with this?

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

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

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

I believe time is important and checking the rating, again and again, can be bad for productivity
I've made a script you can use, which will automatically notify you once the ratings change. Find it here

Update: I changed the script to pass through any errors like network or server down (of course except KeyboardInterrupt)
HELP: If the ratings still remain the same (unlikely and rare, but possible) how do I notify? can you think of a workaround?

For details how the script is running read more:
basically, I fetched the html code for your profile page. I observed that the rating always lie in the info class div and between " style="font-weight:bold;"> and </span>
I used that to scrape the rating by splitting the string by above observations and after comparing repeatedly to current rating curr you get notified. As simple as that!

When I got the Idea, I went on googling the next one hour and went on to see an Episode of suits :P
Then this happened.

It felt Like magic because I had forgotten that the script is running
Lastly Thanks for reading!
PS: Even though it's just blue, it was a thing to celebrate for me :)

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

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

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

While solving the problem http://mirror.codeforces.com/contest/264/problem/A I submitted the solution but it's giving RTE on test case 41. Any help?

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

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