yadv's blog

By yadv, history, 6 weeks ago, In English

I wanted to know that how codeforces backend is made / can be made. Couldn't find any article/blog so thought of asking. I know it may sound pretty basic to some but just wanted to know out of curiosity:D

Wanted to know:

  • The tech stack used

  • How authentication is handled

  • How every users data is stored, like previous history etc.

  • How upcoming contest opens / happens within a fixed time window

  • How the questions are loaded and submission/score count happens for every user.

  • How the final leaderboard is calculated and displayed

  • How the security is maintained.

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

»
6 weeks ago, # |
Rev. 2   Vote: I like it +44 Vote: I do not like it

as one wise man once said: "to hack something, you need to know how it works".

  • »
    »
    6 weeks ago, # ^ |
      Vote: I like it +10 Vote: I do not like it

    Now after this post there is a queue problem in CF. You know what I mean ;)

»
6 weeks ago, # |
  Vote: I like it +10 Vote: I do not like it

For authentication, they are using firebase.

»
6 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Using oops

»
6 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

If you mean by "How the final leaderboard is calculated and displayed" --> "Codeforces Rating System" you can look at this : Codeforces Rating System.