whybee's blog

By whybee, history, 5 years ago, In English

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?

Full text and comments »

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

By whybee, history, 7 years ago, In English

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 :)

Full text and comments »

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

By whybee, history, 7 years ago, In English

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?

Full text and comments »

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