Hello Codeforces! I'm Nathan Allan from Indonesia. I struggle a lot in greedy, ad hoc, and constructive problems (that's why I got low points for both IOI 2025 souvenirs and world map).
Does anyone have any tips for those types of problems? What do you think about first for those problems? And how do I practice those tags? Any help is more than welcome. Thank you so much!








Damn, seeing a CM asking for help in these topics is making me feel even more nervous.
Greedy can sometimes become very random and if you have seen or read about that pattern, then you can do that easily, else good luck.
I see. What kind of patterns do you usually encounter? And do you have any greedy problems that are educational? Thanks in advance!
I encountered these two questions as very insightful, like there could be various patterns, but I certainly wasn't able to solve these without actually knowing what to do:
PS : Please pardon the format if it is wrong.
Same Issues here!Although I started focusing on finding invariance but can't figure out anything a lot of the times.
Yes me too! Although I know I need to use an invariance, it is still difficult to find it.
Hi
These problems are purely based on pattern recognition. What I usually start doing when solving this kind of problem is start solving it on small cases, then start expanding the solution and try finding some sort of pattern that would help me achieve this. Here you either find a simple pattern (which btw is most problems below 2200, the patterns aren't that hard u just have to focus a bit), or get stuck on a time complexity, where you have a solution that is too heavy, which switches the problem from a constructive to an optimization problem that can be solved using data structures, dp, etc.
Solve a lot of constructives, the more you solve the quicker u'll become at finding the pattern. Same goes for greedy, specially that a lot of constructives have greedy in them as well.
Also, participate in more divs, putting urself under the pressure is good to make sure you don't lose ur head and keep your thought process calm and collected instead of all over the place.
Thanks for the suggestion! I'll try to think more small and simple ideas and try to expand from there.
kata Chiz rajin berdoa
ah yes the infamous rajin berdoa
just practice I was bad at it too but now I have pushed through it! now I am able to do problems like A — Again Twenty Five!. I have practiced A LOT and have reached the milestone of 7 problems, PLUS I have dedicated my whole 2 days on codeforces.
just practice I was bad at it too but now I have pushed through it! now I am able to do problems like A — Again Twenty Five!. I have practiced A LOT and have reached the milestone of 1 problem, PLUS I have dedicated my whole 1 day on codeforces.
https://codeforces.me/blog/entry/130338
i found this blog,some of these invariants are so tough to find idk how i would find them in contest
This is certainly helpful, thanks for sharing.
Thanks! I will definitely check it out.
just practice I was bad at it too but now I have pushed through it! now I am able to do problems like A — Again Twenty Five!. I have practiced A LOT and have reached the milestone of 1 problem, PLUS I have dedicated my whole 1 day on codeforces.