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

Автор Grammar_hbw, история, 4 месяца назад, По-английски

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.

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

»
4 месяца назад, # |
  Проголосовать: нравится +89 Проголосовать: не нравится

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

»
4 месяца назад, # |
  Проголосовать: нравится +12 Проголосовать: не нравится

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 месяца назад, # ^ |
      Проголосовать: нравится +31 Проголосовать: не нравится

    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.me/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 месяца назад, # |
  Проголосовать: нравится +69 Проголосовать: не нравится

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

»
4 месяца назад, # |
  Проголосовать: нравится +87 Проголосовать: не нравится

We need a detailed tutorial

»
4 месяца назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

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

»
4 месяца назад, # |
  Проголосовать: нравится +10 Проголосовать: не нравится

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