When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

SecondThread's blog

By SecondThread, history, 4 years ago, In English

CF Notifications

Want an easy-to-use tool to notify you when you get a problem correct? Looking for an inspirational jingle to celebrate when you AC? Wish you could just move on to problem B immediately after submitting A and had someone to let you know in case you got it wrong? Now you can!

CFNotifications.com is a simple website that does this for you. All you have to do is type in your handle and click login.

It works on all CF rounds, and also other submissions if you are upsolving, practicing, or running a VP on your own. Personally, I just leave it on a second computer with the volume turned up and then I don't have to worry about it ever.

How it works

It rechecks Codeforces every 4 seconds for new submissions, or every 1 second if you have a submission that is judging. It uses the CF API and I did my best to make sure it is as low-impact to the servers as possible while still giving results pretty much instantly.

Let me know what you think!


Updates!

  • Per request, I added the ability to play a custom sound on AC (or play no sound at all). The changes are live now, so you should be able to see, but basically now you can enter 'none' if you just want the notification that you got the problem right and no 'distracting' inspirational sound effect, or something like 'https://www.youtube.com/watch?v=dZLfasMPOU4' if you want to hear 3 minutes of Stacy's Mom every time you solve a problem!

  • I also made it save your handle (and the custom sound if you choose to use one) as a cookie, so it should be even easier to use. If you have been there before, everything will auto-fill so you can literally just click the button and it's working.

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

| Write comment?
»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by SecondThread (previous revision, new revision, compare).

»
4 years ago, # |
  Vote: I like it +13 Vote: I do not like it

I think you should remove that music when AC is given, because it distracts you while reading the next problem. Otherwise, thanks, good job.

»
4 years ago, # |
  Vote: I like it +37 Vote: I do not like it

great tool ! it would be awesome if the user had the option to customize the music

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    yes! I want to hear FFVII victory music whenever i get an AC and Undertale determination when I get a WA

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

I have suggestion to make! How about it only notifies when the verdict is any other than Accepted. Since being notified during the contest for AC is just distraction :)

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +43 Vote: I do not like it

    Then you never know if the queue is just stuck or if you actually got it. I think knowing you got it for sure (or at least that you passed pretests for sure) is helpful so that you can then safely permanently context switch all of that out of your head.

    I always appreciate suggestions though!

»
4 years ago, # |
Rev. 2   Vote: I like it +36 Vote: I do not like it

Isn't Codeforces already supposed to be doing that for you? I quite often see a gray bubble with white text saying "Accepted" or "(Wrong answer) or (Runtime error) or (Time limit exceeded) on test x" on the bottom right of the screen while reading B after submitting A.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +25 Vote: I do not like it

    I think it is suppose to, but often it doesn't when the queue is delayed, and you can miss it if you go back to look through your code to make sure you didn't forget some case like I often do. This one is as reliable as hitting f5 until you see that you have a verdict.

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Wow!it can be really useful during contests .. thanks

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by SecondThread (previous revision, new revision, compare).

»
4 years ago, # |
  Vote: I like it +10 Vote: I do not like it

This is actually very useful,thanks))

»
4 years ago, # |
  Vote: I like it +10 Vote: I do not like it

Worked well in last contest, thanks.

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

It would be great if there was a "test" button after I log in to check if everything is working fine (Sometimes I mute my PC).

Currently I have need go to submit page and submit a compile error.

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Can this be made firefox and chrome extension just as CF-predictor?

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    It can. The server only serves the initial webpage, so it would be more suitable as a browser extension/userscript.
    The only (minor) advantage to have a website that I can think of is that the server will always serve the most recent version, whereas extensions/userscripts can take a bit longer to update for all users or may not update at all if disabled.

»
4 years ago, # |
  Vote: I like it -11 Vote: I do not like it

Another Application: You may also add your friend's cf handle to let know of his submissions (just for fun :)

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Honestly, idk why this comment has so many downvotes. I use it all the time so I know when my opponent submits when I am doing lockout contests against someone. Occasionally you'll get notified when they get it right by whatever system you're playing on, but it's also helpful to know when they get something wrong too since you know what they're working on then.

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Alright, so this should now handle system tests a little bit better than it was before. Also, the default sound is added back in, and there is now another check box that you can use if you want to not have the computer voice saying you got the problem right and instead you just want to hear whatever sound you selected (or the default one is you didn't select any).

Let me know if there's anything else that would make this a better tool! :)

  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Oh Hello! This is Aryan. I am a subscriber of your youtube channel as well :) I had a suggestion. Could you please add a feature so that It tells us the change in rank as well! So it would save a lot of time checking the standings. Thanks !!

    • »
      »
      »
      3 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      That's actually a really cool idea. If I have time to, I will!

»
3 years ago, # |
  Vote: I like it +36 Vote: I do not like it

Is it possible to announce non-AC results?

I want to make a challenge with this, for every non-AC submissions the user must play one full blast of despacito.

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

This is great! I can now listen to twice whenever I AC a problem :)

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it
»
3 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Seeing a green ACCEPTED hits differently.

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

A chrome notification as well would be great!

»
3 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Custom sounds like that guy farting into a mic in a supermarket are a must!