Hi guys. I have been doing cp for a while and i am not able to implement even though if i have the logic... And also , solving A tasks are sometimes pretty easier . But i want to improve ... Can you guys give some suggestions? I was doing leetcode for some time but i wanted to solve questions on codeforces... Because one of my friends told that the questions are ad-hoc and sometimes convoluted. And pls suggest some math resources for cp. It seems like most of the questions on codeforces are based on mathematical thinking. (I am very bad at it but i want to improve).
Thanks in advance :)
try to see and understand others solutions.
If the problem is <= 2000, I honestly don't see how a person might have troubles with implementation, if he came up with correct solution.
What about the last div2B?
Easy to implement as well
You know your weak spot already, now filter problems by "implementation" tag and practice them. It takes time but if you do it honestly you will improve. Also try to see code of top coders or people who solved that problem fast, you may learn about some new technique or shorter and clever implementation.
1 — code by ur self(dont copy — if u cant code, see editorial) 2 — just try to solve more ;D
Solve problem in the basis of rating. If you are comfortable in 800, start solving 900 and so on. Think about a problem around 30mins(can be varied). If you can't solve it, see editorial. If you didn't understand editorial, then you can take help of solution or youtube. But make sure that you code it yourself in your way. After solving a problem think about what observation you have got.
Initially in A,B problems standard template library of C++ helps a lot. So make sure you learned it.
You can also learn binary search and two pointer from edu section if you are a beginner. Happy Coding!