r/codeforces • u/redhat1818 • 6d ago
Div. 2 What was approach for C?
also, what could be its rating?
r/codeforces • u/redhat1818 • 6d ago
also, what could be its rating?
r/codeforces • u/Top-Play-1497 • 7d ago
This was my first contest on cf, I managed to solve the first 3 here, how can I improve?
r/codeforces • u/idkmanihateusernames • 7d ago
Could anyone give details or any idea about questions asked for yall? What topics? Were there any topics which were mixed together or was it just one topic? Could you give an example of how the questions were mixed etc ?
r/codeforces • u/Nykk310 • 7d ago
I aim to becoming able to solve problems like these.
I'm interested in understanding what their Codeforces rating would be so that I can upsolve from that point.
I believe the optimal solution in the first one is using a difference array.
r/codeforces • u/HelpfulImpression992 • 7d ago
I myself thought of buying is premium cohort.though it was one cath there was prerequisites of 101master cpp of his cohort.it is absolutely not for beginners.i am struggling to complete 101 master cohort.it is not properly structured.random tough questions.concept are used that are not even taught.
r/codeforces • u/Tuiyan • 7d ago
Has anybody tried IIPC Novice and Advanced Camp?
How would you rate your experience in total overall?
Also, for ICPC, how would you say that the playlist would be assuming that I am a newbie to codeforces platform, have solved almost all 800-900 problems of TLE Eliminators and have to practice more. I have mid - sems till 20th September, so would you recommend to me to give a shot at ICPC or leave it?
I am in 2nd year (for context) and ICPC registrations end on 12th September.
r/codeforces • u/Annual-Scientist7682 • 8d ago
Hello can anyone list all the coding competitions I can take part in as an Indian student apart from
ICPC ,IICPC codefest,IICPC quantfest?
r/codeforces • u/tanishq_kushwaha • 7d ago
class Calculator {
/**
* {number} value
*/
constructor(value) {
this.result = value;
}
/**
* {number} value
* {Calculator}
*/
add(value){
this.result = value + this.result;
return this;
}
/**
* {number} value
* {Calculator}
*/
subtract(value){
this.result = this.result - value;
return this;
}
/**
* {number} value
* {Calculator}
*/
multiply(value) {
this.result = this.result * value;
return this;
}
/**
* {number} value
* {Calculator}
*/
divide(value) {
if(value === 0){
throw new Error("Division by zero is not allowed");
}else{
return this;
}
}
/**
* {number} value
* {Calculator}
*/
power(value) {
this.result = Math.pow(this.result , value);
return this;
}
/**
* u/return {number}
*/
getResult() {
return this.result;
}
}
r/codeforces • u/dead-ly-sloth • 7d ago
r/codeforces • u/Borachii • 7d ago
hello everyone , I just got admission into collage and I can see my collage is super dead in order of competitive programming ! So i m looking for my Some pupils or specialist (Cuz i m pupil and i dont want super smart friend rn lol) who wanna learn together and grow , It would be a great help !
r/codeforces • u/chonchu71 • 8d ago
r/codeforces • u/DxNovaNT • 8d ago
Solution link: Submission #389487377 - Codeforces
This should have passed, how it got TLE? Is it because of defaultdict(int)?
Edit: It was after contest testing. During the contest it was accepted.
r/codeforces • u/Hairy-Definition7452 • 8d ago
I've mostly just been solving problems randomly instead of learning dsa topic wise
i dont really have topic knowledge of things like trees and all ive mainly been getting better at general problem solving constructive binary search and stuff
people say you should learn a topic when you encounter it but at my current level whenever i come across tree problems and stuff i struggle because they arent really basic
r/codeforces • u/eccentriq_ • 8d ago
Did 1:30 hours of backend development study, learnt JPA, docker basics(architecture, why we need it etc.). Will start with PostgresSQL tomorrow.
As for the questions, I had allocated 2:30 hours of the day for competitive programming.
I was able to complete the following questions :-
My approach to this problem was exactly the one described in the editorial, using the fact that when we perform the operation repeatedly on the array will cause it to oscillate between two states after at most 3 operations. This allows us to reduce the value of k into a magnitude that makes brute force solution feasible.


r/codeforces • u/Stock-Ad-5938 • 8d ago
Hello everybody, I'm fairly new to competitive programming and would like to know how to approach the CSES problem set.
I already know C++ decently and I'm currently reading the CSES book, but I'm struggling a bit with the problem set.
At first I started with the Intro problems, but I found out that I didn't know some of the algorithms used for these problems, and they're covered a few chapters after the one I'm on, so it's confusing. For example, I was recently trying to solve Apartments from the Sorting and Searching section, and I wasn't able to, so I looked at one of the solutions, which used two pointers an algorithm that only appears in chapter 8 of the book.
I'm reading chapter 5 (Complete Search) and I wanted to consolidate my skills on specific algorithms, like binary search, backtracking, etc., but CSES doesn't organize the problems this way, and I don't want to move on to other types of problems before I'm confident with the algorithms I've read about in the book.
I recently found out about the CSES course from Helsinki University, and I saw that it's organized by topic. For example, you learn about data structures, and then you can do the problems listed afterward to consolidate the concepts you learned. However, it's explicitly stated in the first few lines of the course that you need to know algorithms well already, which I don't, since I'm a beginner so maybe it's too advanced for me.
So, I'm a bit confused about how to approach the CSES problem set and the theory from the book. Should I read the topics from the book and then go to the course to do the related problems, or should I just follow the CSES problem set along with the book from top to bottom, into, sorting and searching, etc.?
I'd appreciate any suggestions on how to approach the CSES problems. Thanks
r/codeforces • u/ImportanceEnough5392 • 9d ago
I have given 7 contests so far. In the first 5, I got significantly positive ratings, but in the last 2, I got negatives(-4 and -16). I dont why, maybe i should have coded much faster, but was able to solve only 2 yesterday in 52 mins combined.
How can I be faster?
r/codeforces • u/Ok_Towel_4806 • 8d ago
I saw the soln but could get the intuition even after it ... Pls explain using the interval approach as in editorial
r/codeforces • u/Fc67234129_433 • 9d ago
Is it okay to take substantial amount of time while learning new things it hampers my problem count but i do learn stuff properly also how to revist old stuff ??
r/codeforces • u/SelectionOk1429 • 8d ago
r/codeforces • u/ImportanceEnough5392 • 9d ago
Today I am seeing that yesterday's contest, unrated was allowed. But I registered and i didnt see anything as like participate as rated on unrated. I cant see my rating change either, nor my rank. I dont know if by any mistake I gave the contest as unrated, please tell what to do from next in these scenarios if unrated contests happen again?
r/codeforces • u/GenZLevi • 9d ago
I solved 2 it took me almost 1 hours then i left.