Grammar_hbw's blog

By Grammar_hbw, history, 4 months ago, In English

Codeforces has a big bug. First, make a virtual paticipation of any contest. Second, in your Contests page, change its time to billions of years later. You may repeat it some times. After doing this, you will see a big bug and then your Contests page is never available. I did this stupid thing some months ago, and my Contests page has never been available for months. I wonder if someone can help me deleting that VP contest and make my Contests page return.

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

»
4 months ago, # |
  Vote: I like it +89 Vote: I do not like it

Bro was checking the edge cases of CodeForces and got TLE.

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

    Bro'd better use this trick in contest and get +50 points.

»
4 months ago, # |
  Vote: I like it +12 Vote: I do not like it

I'm sorry I can't help, but I want to say that this bug has been there for a long time, and it has been reported for many times. However, it's not fixed as you can see.

(Why don't you just wait for the billions of years?)

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

    I found a temporary solution to avoid waiting billions of years:

    1. On any codeforces page open the developer console (F12)
    2. Find <meta name="X-Csrf-Token" content="*****"> in the <head> tag, copy string from the content field and paste into this Python code
    3. Open Network tab in developer console and refresh page
    4. Open first record, copy your Cookie and User-Agent and paste into Python code
    5. Enter the contest ID (last numbers from url, for example: 1995 is ID of Codeforces Round 961 (Div. 2)) for which the billion years VP was launched
    6. If you don't remember contest ID, try to bruteforce it using for loop
    Elements tab screenshot
    Network tab screenshot

    Python code:

    import requests
    
    xCsrfToken = ''
    cookie = ''
    userAgent = ''
    contestId = 1995
    
    resp = requests.post('https://codeforces.net/contests',
                         headers={
                             'content-type': 'application/x-www-form-urlencoded',
                             'cookie': cookie,
                             'User-Agent': userAgent},
                         data=f'csrf_token={xCsrfToken}&action=deleteVirtualContest&contestId={contestId}')
    print(resp.status_code)
    print(resp.text)
    
    
»
4 months ago, # |
  Vote: I like it +69 Vote: I do not like it

This is the funniest thing I've read in a while

»
4 months ago, # |
  Vote: I like it +87 Vote: I do not like it

We need a detailed tutorial

»
4 months ago, # |
  Vote: I like it +8 Vote: I do not like it

bro keep some patience, it'll be available soon. Cheers!

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

    How soon? Don't tell me that it needs billions of years...

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

Be happy and I'sure that after billions of years, your Contests page will be OK!

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

    It seems that Codeforces system overrides and the Contests page will never return.