Codeforces is a platform that hosts competitive programming contests. As a learner, you can improve your programming skills by participating in contests with varying levels of difficulty.
With Educational Tools support, you can join programming contests and test your solutions right inside IDEs based on the JetBrains IntelliJ Platform.
Choose your IDE
You can join contests in IntelliJ IDEA PyCharm WebStorm Android Studio CLion GoLand with the EduTools plugin installed.
If you are using a different supported IDE, switch to it by using the Section drop-down menu at the top of the page:
Getting started with Codeforces
Joining a contest
On first installation, EduTools asks if you're a Learner or an Educator. Choose Learner:
If you don't have this window, proceed to the next step. The role can be changed any time in.
- To join a Codeforces contest, go to
You can also access this dialog by going: :
If you have a link to the contest you want to join, enter it in the Contest URL field and click OK:
Or click View all contests… to see a list of all available contests:
Start typing the contest name to activate the search box:
Choose one of the contests from the list, click Select, and then click OK.
Choose your language and programming language and click OK:
Click Start or Join, and wait for the contest to load:
You can now browse the contest. Go toor press Alt+1 to explore the problems list:
Every problem has a Main.* file where you need to write your solution to complete the contest challenge. Use the Editor to write your solution:
You can read the description of the problem by using the Task Description view in:
Now you're ready to start programming. Read the problem description:
Click Open on Codeforces to open the problem in your browser.
When you are ready, verify your solution by clicking Run Local Tests at the bottom of the Task Description View. If your solution passes the local tests, the Submit solution button will appear:
Go back to the IDE and click Submit solution, and you’ll be redirected to your browser. Now fill out the submission form and click Submit:
Your submission is now available in the My submissions tab:
Since your submission is being graded on a full test suite, its verdict will appear once the testing is finished.
Coping with mistakes
If verification fails, you will get a message that displays which tests failed:
Click Compare Outputs… to see the diff between expected and actual outputs:
You can also add your own custom tests and verify your solution with them. To do so, create a subdirectory in the TestData directory and put two files into it: input.txt and output.txt:
Stay determined and don’t give up!