Amao_Fox's blog

By Amao_Fox, history, 4 hours ago, In English

Today we had a contest including three problem called "简单函数(function)", "异或大师(xor)" and "摩天大楼(skyscraper)".

In Chinese OI, mostly we have to read and write to files, some would use fstream or fopen, I use freopen, that's not the point.

A common Chinese coder knows that the different code lists of Chinese is just a trash, you could use UTF-8 on your computer and send it to your teacher while your teacher using GBK, and your code bombs.

freopen("摩天大楼.in", "r", stdin); -> freopen("鎽╁ぉ澶фゼ.in", "r", stdin);

So we often use English to the problem and code names. And I typed the wrong name using

freopen("skycraper.in", "r", stdin);
freopen("skycraper.out", "w", stdout);

And I didn't notice that issue until I recieved RuntimeError0pts after the contest.

Congratulations that I lost 8pts which wouldn't lead to any trouble. But what if I could have 100pts on this problem and lost them all? That would be a disaster.

R.I.P. sky s craper 2025/2/6 ~ 2025/2/6

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

»
4 hours ago, # |
  Vote: I like it +11 Vote: I do not like it

So remember to copy-paste the file name into your code.

»
4 hours ago, # |
  Vote: I like it +2 Vote: I do not like it

Mostly we put each cpp file into their own folder one by one, and put these folder into a root folder to submit it to coach.

Guess who put four cpp file directly into the root and sent it to coach, getting FileNotFound0pts for all the problems.

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

Hundreds of languages is an evolutionary mistake, humanity should have exactly three languages.

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

what is used to locally grade codes in china?

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

why is chinese OI no feedback

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

    That's how "real OI" contests work... you are not allowed to submit during the contest and you can only leave your computer and wait for the staff to collect all the codes. In daily contests, we usually send the code ourselves because we are using our private computer rather than the public ones.

    Anyway, there is no way to get feedback during the contest, and the only thing you have is just some more samples than in ICPC or CF (which may be huge enough to test), sometimes checker.exe etc. It's very exciting to wait for the score coming out after the contest.

    • »
      »
      »
      75 minutes ago, # ^ |
      Rev. 2   Vote: I like it 0 Vote: I do not like it

      What makes something "Real OI"? Is IOI a fake OI?

      • »
        »
        »
        »
        38 minutes ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Yeah, in China, we usually call them contest format. There are several commonly used contest formats now:

        OI contest format, which is commonly used in China (such as CSP-J/S second round, NOIP and NOI contests), allows players to submit only once. The evaluation results cannot be seen during the contest, and the scores will be announced after the contest. Each question has multiple test points, and the corresponding score is obtained based on the number of test points passed by each question; Each test point may also have partial scores, and even if only a portion of the data passes, scores can still be obtained.

        IOI contest format, which is the format used in most contests (such as APIO, IOI, etc.), where players have multiple opportunities to submit during the contest. Real time evaluation of the contest and return of results. If the submitted results are incorrect, there will be no penalty time. Each question has multiple test points, and the corresponding score is obtained based on the number of test points passed for each question.

        The Codeforces contest format, which is commonly used by Codeforces, is characterized by testing only a portion of the data (Pretests) during the contest, and returning complete test results for all test points (System Tests) after the contest ends. Multiple submissions are allowed during the contest, allowing for hacking of other people's code, which means submitting a test data that prevents other people's code from providing the correct answer.

        The ACM/ICPC contest format, which is commonly used in competitions such as ICPC and AtCoder, provides feedback after each question is submitted, but there are no incorrect test samples visible. Each question has multiple test points, and passing all of them is considered a pass. There is no limit to the number of times each question can be submitted, but if it is not passed, there will be a penalty time. Only the last submission will be considered, and if the number of passed questions is the same, the ranking will be based on the answer time+penalty time.

        The extended ICPC/ICPC+ contest format is also a contest system used by Codeforces. During the contest, all data will be tested, but after the contest ends, there will be a 12 hour network wide hack time. During the hack, it is allowed to copy the player's program to the local for testing.

        Reference resources (OI-Wiki): https://oi-wiki.org/contest/oi/