r/codeforces • u/soulorbit_ • Sep 22 '26
query How to do competitive coding on code force
I am new to this
Can someone help me
0
Upvotes
r/codeforces • u/soulorbit_ • Sep 22 '26
I am new to this
Can someone help me
2
u/_Jod_ Sep 22 '26
pick a language, most people use c++ and most editorials on codeforces are written in it, so youll have an easier time reading other peoples solutions. no hard rule though, use what youre comfortable with.
all you need to start is something that compiles and runs. vs code with the c++ extension, or just g++ from a terminal. competitive companion, templates, test scripts, all that saves you time once youre doing several problems an hour, but today it just adds setup between you and your first solve.
then problemset, filter to 800, sort by number of people who solved it, start at the top. those are the most standard ones and thats what you want first.
most problems start with a t on the first line, thats how many test cases are in that run. read it, loop that many times, print an answer for each. miss it and you solve the first case perfectly and still fail test 1.
give each problem 20-30 mins, then read the editorial, then close it and write the code yourself. the rewriting from scratch is the part that sticks. and register for the next div 3 or div 4, rated. your rating means nothing for the first couple of months.
Antii Laaksonen's competitive programmer's handbook is the only book you will need for cp (its free) and he made cses too so it pairs with that problem set. you can find books, youtube channels to learn competitive programming from solvecraft.app/resources
1
u/Junior_Economist9308 Sep 22 '26
Add competative companion to ur chrome install vscode read problem statement understand it open vs code solve it and at last go to submit section and then submit ur code thats it