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.
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.
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).
Unfortunately, using some functions need your verification by your mobile number of mainland China. But the problemset and contest can be used without verification.
Actually green means future and blue means active.
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).
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.
To have an OI level of 3, you should be able to pass CSP-J/S Round 1 ( written examination ).
To have an OI level of 5, you should be able to get top 20% in CSP-J Round 2.
To have an OI level of 7, you should be able to get top 10% in CSP-S Round 2.
About what is CSP, please refer to this blog.
For more specific information, please refer to Open Contest Standard and Official Contest Standard. (Chinese)
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.
In fact,if you're an ACMer,you can find the luogu admins to proof yourself.
anyone make a script that is like codeforces better?
Currently there is no script on Luogu which does translation. We recommend you to use AI for translation.
There is a script called Extend Luogu. It involves more features like searching users. But it does not help foreigners.
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:"
My account number is 743373,Seeking attention(Click "+关注")
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.
You can register at any time.
How to create a contest in Luogu?
i tried registering, it doesn't send me email for otp
try again?
But now the article section of Luogu has been updated, so the console code cannot work properly.
@chen_zhe
How do we view the editorial?
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.
why this not look programming website but a travelling website like agoda
Haha, it's just a coincidence But Luogu is really useful!
English statement will be provided in every Div. 3 now.
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:)