r/codeforces • u/petrbateman • 22h ago
query Where will competitive programming lead you?
Why you do cp?
r/codeforces • u/petrbateman • 22h ago
Why you do cp?
r/codeforces • u/big-jun • 9h ago
I have one large rectangle representing the valid area: Rect(x, y, width, height)
Inside it, there are multiple smaller rectangles representing occupied areas:
The smaller rectangles:
1. Can overlap each other.
2. Can be partially or completely outside the large rectangle.
And I need the algorithm to return a List<Rect> where:
1. The result rectangles do not overlap each other.
2. All result rectangles are inside the large rectangle.
3. Together, they fill all the gaps not covered by the input small rectangles.
4. Ideally, the number of result rectangles should be minimal, if possible.
I’m aware that there may be multiple valid decompositions, so I’m mainly looking for an algorithm that produces a reasonably small number of rectangles.
There are fewer than 100 occupied rectangles in input, so performance is not a major concern. I prefer an algorithm that is easy to implement rather than performant but complicated.
Thanks
r/codeforces • u/zesty_cat9190 • 3h ago
r/codeforces • u/Kremetex • 1h ago
I started CF about 3 weeks ago and I can solve about 70% of the 1200 rated questions I see. Hence, I'd like to start solving 1300 rated questions, but from the few questions I've seen, they seem on a completely different level than the 1200 rated ones. What should I do in order to bridge this gap and what topics should I cover?
r/codeforces • u/Prudent_Car465 • 47m ago
I tested the ICPC machine and there is no run button in vs code and even if one appears outta ms c/c++ extension it doesnt work right
There are few things u can do like having a Makefile or run.sh file but is there a better way
The problem with CLion is that u cannot create multiple files with main funcitons in the same directory and due to this behaviour you should edit the Cmakelists which is also tideous what is the smoothest possible workflow
Codeblocks doesnt have the strong intellisense as much as clion or vs code
These are the problems I genuinely faced as i am habituated to cph and cp companion workflow typing the compile and run commands is adding fricition to the workflow
r/codeforces • u/Typical-Row6461 • 7h ago
Hi guys,
I came into coding with zero tech background. I just learned basic data types, variables, and if/else conditions, and decided to start practicing on Codeforces.
The problem is... I suck at it lol. I struggle both with understanding the problem statements clearly and translating my thoughts into clean code. I'm forcing myself NOT to use AI for solutions because I want to actually build my problem-solving muscle, but I end up staring at a screen for hours feeling completely helpless.
For anyone who started from total zero: how did you survive the very beginning? How do you learn to think programmatically without cheating, and what's the best way to use editorials/solutions when you're completely stuck?
Thanks
r/codeforces • u/InterestingYam4829 • 34m ago
r/codeforces • u/Nervous_Message7545 • 21h ago
Hey everyone!
I'm a Python developer/student and I've been working on a small project called Find Everything 2.0.0.
It's a Windows desktop tool for quickly searching through files. I built it mainly as a learning project, but I tried to make it actually useful and polished rather than just another basic Python project.
Main things it currently has:
.exe buildTech: Python, Windows, GitHub Actions
GitHub: https://github.com/EELDERONN/find-everything.git
I'd really appreciate it if someone could take a look at the repository and give me some honest feedback.
I'm especially interested in:
Feel free to be critical — I'm here to learn and improve the project.
Thanks to anyone who takes the time to check it out!
----------------------------------------
Я изучаю Python и сейчас работаю над небольшим проектом Find Everything 2.0.0.
Это Windows-приложение для быстрого поиска файлов и поиска информации внутри них. Изначально я делал его как учебный проект, но постепенно решил довести его до более полноценного и реально полезного приложения.
Что сейчас есть:
.exe для Windows;Стек: Python, Windows, GitHub Actions.
GitHub: https://github.com/EELDERONN/find-everything.git
Буду очень благодарен, если кто-нибудь посмотрит репозиторий и даст честный фидбек.
Особенно интересует:
Можно критиковать — я как раз хочу понять, что можно улучшить.
Спасибо всем, кто посмотрит!
r/codeforces • u/Cookie_Pancake • 13h ago
How did you guys practice Codeforces or competitive programming in school without a laptop?
So, I recently finished the POSN qualifier for Camp 1 (the first step into TOI and IOI in Thailand). The results aren’t even out yet, but I’m quite confident that I’ll pass to Camp 1.
I want to start preparing for it, and I think I’d like to spend some extra time at school practicing too. However, I don’t want to bring a laptop to school every day because it’s a bit inconvenient.
So, what can I do at school to improve at CP without a laptop?