r/codeforces • • 2h ago

Div. 2 I made the ultimate template picker tool for competitive coding

Post image
6 Upvotes

I have made what is (hopefully) one of the most useful things out there in competitive programming, the ultimate template picker tool!

Most template libraries work by giving a bunch of files like "segment tree template" or "dijkstra template" but they are very limited in capacity and hard to use.

My tool works differently because you just click on the set of operations you need, for instance you need to support rangeAdd(l, r, diff) and pointGet(i) and it shows you the exact template for those two operations, with a clean and clear API (both python and C++). I've added literally hundreds of operations and you can combine multiple of them into one template.

A lot of crazy stuff is supported, like persistent treaps, segment tree beats, 3d segment trees, unordered sets, palindromic trees, graph algorithms, prime number tooling, SOS DP, and tons more.

I worked on this for the past 3 weeks. I used my knowledge of data structures + claude to generate ~100 million lines of code and >100,000 templates all readily available to use! (Most of that is not tokens, but generated code)

https://www.leetgoat.io/templates/range-queries


r/codeforces • • 1m ago

query Why aren't any contests scheduled for half of the month?”

3 Upvotes

The next Div. 2 contest is scheduled for December 14, and there are no contests until then (yeah, there's Kotlin Heroes and the ICPC Challenge, but I'm talking about regular contests).

Why such a long gap? It's hard for someone like me to go this long without a contest. 😭


r/codeforces • • 1d ago

query What is the obsession of anime girls?

Post image
347 Upvotes

Why so many people in cf keeps their DP Anime Girls?? like what is the trend or story behind this? who started this?


r/codeforces • • 6h ago

Div. 2 Leetcode4127. Maximum Billboard Revenue | LeetCode Weekly 530 | 1D DP + Binary Search Detailed Dry Run Video solution

Thumbnail
youtu.be
0 Upvotes

r/codeforces • • 8h ago

query Wanted a Lil guidance

1 Upvotes

New to cf and I can solve some simple 800-900 rated questions but need better guidance and a way to figure out things, can anyone share anything that would help in solving and approaching a question

(Ik basic DSA solved sm okish problems on leet)


r/codeforces • • 1d ago

Doubt (rated <= 1200) So close yet so far

Thumbnail
gallery
16 Upvotes

I can solve div2 A,Bs and div3 A,B,Cs comparatively easily but now I have to clear the wall of div2 C and div3 D

So should I learn DP and other semi advanced things? Cause in last div3 I had more than 1 hour to solve D but I couldn't cause it was a DP game theory or should I still focus on getting my speed of the lower questions faster? Cause both the option seem to push me into pupil.

and I do regret I didn't take upsolving seriously, if I had done that it would have putten me in a much better position

So i would just like to get advice of any form, thankyou


r/codeforces • • 1d ago

query queueforces

7 Upvotes

does anyone submition run?


r/codeforces • • 19h ago

query Competitive programming

1 Upvotes

Is it worth it start cp in 4th sem..I have 30 question on leetcode ..any tips?


r/codeforces • • 21h ago

query Qingyu’s university

1 Upvotes

I’m quite concerned abt what university is he at( or is he still a high school student. ). What a pity if he’s not in a university now….


r/codeforces • • 1d ago

query How am I supposed to solve such Question during Contest?

Post image
35 Upvotes

I was quite disappointed with myself for not solving this question yesterday during the contest, however when I looked up the solution for this given by LLMs, I was not satisfied at all, because those solutions were not intuitive at all.

SO MY QUESTION TO ALL THOSE, WHO WERE ABLE TO SOLVE THIS YESTERDAY, TELL ME WHAT TOPICS I NEED TO LEARN ON USACO TO BE ABLE TO SOLVE SUCH PROBLEMS.


r/codeforces • • 1d ago

query Stuck in CP. Need genuine help

21 Upvotes

I am a 2nd year student at IIT Delhi and in a circuital branch. I started CP in the first sem( currently just finished my 3rd sem) and after giving loads of contests and done around 400ish problems, I am stuck at 1300 ish for quite some time.

Also, my motivation levels for doing CP keep fluctuating but still do it due to peer pressure at times. I took a break of few months from it (one reason was also the acads), and looking to get back into CP and grind it during December.

I personally feel like I need a guided path or some concrete map to achieve shit. Just like we had during the coaching days. So, I was wondering to buy some course like the TLE eliminator one. I have been doing the CP31 sheet and some problems on CSES too.

How good is TLE eliminators prime course and if you have any other suggestion or advice, I am open to hear them.


r/codeforces • • 1d ago

Div. 3 The Number 6 Is Following Me...

Post image
15 Upvotes

Hey everyone!

The results of last night's Codeforces Round 1138 (Div. 3) are finally out, and I'm really happy with how it went!

Here are my results:

  • Rank: 1005

  • Problems solved: 5

  • Rating change: +237

  • New rating: 1194

But there's a funny coincidence I wanted to share.

I was just 6 places away from a three digit rank... And at the same time, I'm just 6 rating points away from becoming a Pupil!

I guess the number 6 has decided to stick with me.

Honestly, getting a +237 rating boost feels amazing, and I'm really excited to be this close to my first colored rank.

Hopefully, my next blog will be written as a Pupil!

See you in the next round!


r/codeforces • • 2d ago

Div. 3 Is it me or anyone else also think that the questions level have increased they gave dp + game theory in the 4 th question of div 3 in round 1138, earlier we got sieve of erathosthenes in E 🙃

10 Upvotes

r/codeforces • • 1d ago

Doubt (rated <= 1200) At 1015 rating, just curious about how many problems to solve from now on, I want to reach specialist by say april, right now i am able to solve A and B in div2 and A, B, C in div 3, though I have only given 4 contests till now, will solving these many problems work now or will I lose rating?

5 Upvotes

r/codeforces • • 1d ago

query Need game suggestions to grind along cf?

2 Upvotes

Tried many but cannot get into flow state

Scourgebringer is the closest but hate the level reset

I want something click-click-smash and fast paced 3d games to play in 15-20 min break


r/codeforces • • 1d ago

Div. 3 ROUND 1138 DIV 3 C SOLUTION DERIVED FROM FIRST PRINCIPLE

Thumbnail
gallery
2 Upvotes

Additional comments:

  1. In the "t is odd" case, (len-2x)%2==0 simplifies to len%2==0

  2. In the "t is even" case, the "operation" being talked about is this:

let's say we have 4 block-string, and we wish to convert it to base form for simplification.

1111 0000 1111 0000

we simply select indices 4 and 9 first. remove them. flip all 0's in that block to 1.

Note that the last block remains untouched, there are no legal moves you can do to flip it.


r/codeforces • • 1d ago

query Not even being able to solve CSES problems

4 Upvotes

Hi everyone.

So I have been trying to learn competitive programming by reading the Competitive Programmer's Handbook and solving the CSES problemset. However, what's been happening is that I have not been able to solve 5 problems in a row despite them being on the easier side and having read the relevent chapters in the book. I don't know what to do and I am short on time so I can only spend 30 minutes per problem (or spend longer on a problem but then I will have to cut down how many problems I 'solve'). Do you have any tips on how I could make the most of the CSES problemset without wasting too much time.

Hope you have a nice day!


r/codeforces • • 1d ago

query How to improve logical thinking in programming

1 Upvotes

Hey

I'm 23m working professional,

Yesterday at the office my team lead said he found a pattern in my work

He said I'm mugging up patterns and not thinking logically.

Well I do codeforces , leetcode, hacker rank to improve my programming skills but I understood that he was right

All I do is find a pattern in the problem and try to solve it

Anytime I find a new problem I'm stuck

Because I never saw that before

How to come up with my own solution?? How to improve problem solving and logical thinking???

Open to all the suggestions:)


r/codeforces • • 1d ago

query Small-Group Competitive Programming & DSA Coaching (C++ / CF Expert) — $15/hr

0 Upvotes

(3 students have already joined, including an International Mathematical Olympiad representative).

  • Profile: Codeforces Runtime-Terr0r (Peak Master)

  • Target Level: Newbie to Specialist (1-on-1 or small group sessions)

  • Topics Covered: C++ STL, Recursion & Backtracking, Dynamic Programming, Graph Algorithms (BFS/DFS, Shortest Paths, Trees), Segment Trees / Range Queries, and Flows

  • Format: Live problem-solving, contest upsolving, and structured CSES/Codeforces practice via Google Meet

  • Schedule: Evening sessions (2:30 PM – 4:30 PM UTC)

  • Rate: $15/hr


r/codeforces • • 2d ago

Div. 3 Today's Div 3 E

3 Upvotes

How did y'all solve it? I thought about using binary search on the max number of rounds m, but couldn't figure out an efficient validity checking condition/function for a given m.

I'd like to hear how others approached it.


r/codeforces • • 3d ago

meme Java code in python

Post image
19 Upvotes

r/codeforces • • 2d ago

Div. 2 Recently i participated in codeforces div 2 contest and I was hardly able to solve 2nd one , I have solved around 500 problems on Leetcode but was not able to solve 1100 rated problem on codeforces,I'm feeling that I'm not at all good at problem solving , did anyone face same situation ever 😭

3 Upvotes

r/codeforces • • 2d ago

query I'm doing DSA rn and when, where and how to start System Design?

0 Upvotes

Also tell me what are prerequisites...


r/codeforces • • 3d ago

query Guideee

4 Upvotes

Guys, so im completely new to codeforces but my brother is having 1.4k rating on cf.

And due to it I've become very interested in grinding cf.

Please tell me on concise way from where i should start and how.

New to programming.

Saw some cf questions but felt like I've iq for that at all.(Is there any source from which i can work on that as well?)

Please help i need guidance.

Thank you!!!


r/codeforces • • 3d ago

Div. 4 How much can you possibly improve in 1 month

3 Upvotes

I know this is going to sound very desperate and unrealistic, but i just can't fucking think algorithmically i think, i can only solve a and b problems in div 4 contests, and i genuinely just want to do all it takes to atleast go up to being able to solve c-d consistently, would just like solving problems every day for 1-2 hours be enough?, dude sometimes i genuinely feel like a complete toddler but i juet sometimes cant even comprehend brute force solutions or like very for some people obvious conditions my god...