Educational Products 2020.3 Help

Codeforces Contests

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:

Choose your IDE
Choose your IDE
Choose your IDE
Choose your IDE
Choose your IDE
Choose your IDE

Download IntelliJ IDEA Edu or Install EduTools Plugin if you already have IntelliJ IDEA Community or Ultimate.

Download PyCharm Edu or Install EduTools Plugin if you already have PyCharm Community or Professional.

Download Android Studio and Install EduTools Plugin.

Download WebStorm and Install EduTools Plugin.

Download CLion and Install EduTools Plugin.

Download GoLand and Install EduTools Plugin.

Getting started with Codeforces

Joining a contest

  1. On first installation, EduTools asks if you're a Learner or an Educator. Choose Learner:

    Choose your role

    If you don't have this window, proceed to the next step. The role can be changed any time in Help | Enable Course Creator Features.

  2. To join a Codeforces contest, go to the My Courses tab on the Welcome Screen, click and select Start Codeforces Contest:

    Edu start codeforces contest idea
    Edu start codeforces contest pycharm
    Edu start codeforces contest webstorm
    Edu start codeforces contest studio
    Edu start codeforces contest clion
    Edu start codeforces contest goland

    You can also access this dialog by going File | Learn | Start Codeforces Contest:

    Edu file menu start coursera assignment
  3. If you have a link to the contest you want to join, enter it in the Contest URL field and click OK:

    Edu codeforces contest url

    Or click View all contests… to see a list of all available contests:

    Edu codeforces view all contests

    Start typing the contest name to activate the search box:

    Edu codeforces search contest

    Choose one of the contests from the list, click Select, and then click OK.

  4. Choose your language and programming language and click OK:

    Edu codeforces choose contest languages
  5. Click Start or Join, and wait for the contest to load:

    Edu codeforces start or join contest

Getting around

  1. You can now browse the contest. Go to View | Tool Windows | Project or press Alt+1 to explore the problems list:

    Edu codeforces problems list
  2. 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:

    Edu codeforces editor
  3. You can read the description of the problem by using the Task Description view in View | Tool Windows | Task:

    Edu codeforces task description

Getting started

  1. Now you're ready to start programming. Read the problem description:

    Edu codeforces problem description

    Click Open on Codeforces to open the problem in your browser.

  2. 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:

    Edu codeforces run local tests
  3. You may need to run or debug a single test case. Instead of manually copying and pasting your input each time, you can right-click the required test and select Run or Debug:

    Edu codeforces auto substitution
  4. Open a web browser and log in to your Codeforces account. If you don’t have one yet, register here.

  5. 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:

    Edu codeforces submit solution
  6. Your submission is now available in the My submissions tab:

    Edu codeforces my submissions

    Since your submission is being graded on a full test suite, its verdict will appear once the testing is finished.

Coping with mistakes

  1. If verification fails, you will get a message that displays which tests failed:

    Edu codeforces failed tests
  2. Click Compare Outputs… to see the diff between expected and actual outputs:

    Edu codeforces compare outputs
  3. 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:

    Edu codeforces custom tests
  4. Stay determined and don’t give up!

Last modified: 12 March 2021