Error_Yuan's blog

By Error_Yuan, history, 5 months ago, In English

UPD: (From MatrixGroup) To copy Markdown for discuss and articles, you can:

For discuss, use the code:

console.log(_feInstance.currentData.post.content); 

For articles, use:

console.log(JSON.parse(document.getElementById('lentille-context').innerText).data.article.content);

Luogu is a famous OJ (Online Judge) in China. Many users of Codeforces may know it, but don't know how to participate contests on Luogu. So I'm writing this blog to offer a brief tutorial.

I suppose that you do not have a Luogu account, so let's start from registering.

Step 1. Create An Account

Enter the site: link

Here is the English translation for this page.

You need to fill in:

  • username,
  • password (and confirm),
  • the secret code in the picture,
  • your email, (and click the "send verification code" button)
  • check your email, and enter the verification code.

Step 2. Login

If you do not login automatically, you need to login in your own.

Enter the site: link

If you logged in successfully, return to the home page https://www.luogu.com.cn/ and you will see:

in the top-right corner.

Step 3. Register for the Contest

The home page of Luogu looks like this:

After entering the contest page, you should click the register button.

Step 4. In contest

During the contest, you can view the problem list and solve problems. Most of Luogu contests do not offer English statements, so it is recommended to use chatGPT to translate it. You can click the "copy Markdown" button in the problem page.

If the authors do provide English statements, they are likely to post an annoucement on Codeforces.

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

»
5 months ago, # |
  Vote: I like it +106 Vote: I do not like it

It's a great tutorial.

Please note that due to relevant laws and policies in mainland China, only phone numbers with the +86 area code can be used to post discussion threads on Luogu. We are working on establishing an international platform to circumvent this restriction, but this will take some time.

»
5 months ago, # |
  Vote: I like it -11 Vote: I do not like it

This is good news.

Unfortunately, just as Chinese mobile phone numbers (+86) are prohibited from use on many websites, many Chinese websites can only use mainland China mobile phone numbers (+86).

»
5 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Unfortunately, using some functions need your verification by your mobile number of mainland China. But the problemset and contest can be used without verification.

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

Actually green means future and blue means active.

»
5 months ago, # |
  Vote: I like it 0 Vote: I do not like it

What is the system of contests on Luogu? Can anyone make a contest and add it? Or there are certain contests with rating and stuff (like here).

  • »
    »
    5 months ago, # ^ |
    Rev. 4   Vote: I like it +26 Vote: I do not like it

    Anyone can create a contest but only contests after coordination ( so-called open contests ) can be shown to everyone on the main page. Actually, the coordination is very weak. Rated contests have stronger coordination and official ones have even stronger coordination. Note that you do not need to be an admin to hold an official contest though. However, there are also unrated contests with good problems, so please check them by yourself.

    To make the coordination simpler, everyone involved in an open contest ( including exactly one responsible person, writers, testers and other people in the group ) should have an OI ( Olympiad in Informatics ) level of at least 3. Only specific contests held by CCF ( China Computer Federation ) ( mostly onsite ) are counted. For a rated contest, the responsible person should have an OI level of at least 7 and writers should have an OI level of at least 5.

    About OI levels

    For more specific information, please refer to Open Contest Standard and Official Contest Standard. (Chinese)

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

      Note: there can be more than one responsible person, but only the marked one will be contacted. In a personal open contest, the writer, and in a group open contest, the group owner is, if not marked, responsible as well.

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

      In fact,if you're an ACMer,you can find the luogu admins to proof yourself.

»
5 months ago, # |
  Vote: I like it 0 Vote: I do not like it

anyone make a script that is like codeforces better?

»
5 months ago, # |
  Vote: I like it 0 Vote: I do not like it

You are right, but there is a typo.

"If you logged in successfully, return to the home page https://luogu.com.cn/ and you will see:"

The correct sentence should be:

"If you logged in successfully, return to the home page https://www.luogu.com.cn/ and you will see:"

»
4 months ago, # |
Rev. 2   Vote: I like it -34 Vote: I do not like it

My account number is 743373,Seeking attention(Click "+关注")

»
4 months ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

Does register button only open, when contenst is running ?

Edit: Found the Resgiter Button, it was moved to other positon because of website Translation Extension.

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

How to create a contest in Luogu?

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

i tried registering, it doesn't send me email for otp

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

But now the article section of Luogu has been updated, so the console code cannot work properly.

@chen_zhe

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

How do we view the editorial?

  • »
    »
    3 months ago, # ^ |
    Rev. 2   Vote: I like it +1 Vote: I do not like it

    In the task statement page, if there is a red button, click it to exit the "contest mode".

    Then there is "solution" button.

    The solutions are usually provided by users and written in Chinese, so you may need use translate tools.

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

why this not look programming website but a travelling website like agoda

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

English statement will be provided in every Div. 3 now.

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

Really useful!I like the problem difficulty's and the testpoint's colors.

Visit here,this contest is all in English,

hope you have fun:)