Блог пользователя infj1

Автор infj1, история, 15 месяцев назад, По-английски

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 :)

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится

»
15 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

try to see and understand others solutions.

»
15 месяцев назад, # |
  Проголосовать: нравится -21 Проголосовать: не нравится

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.

»
15 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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.

»
15 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

1 — code by ur self(dont copy — if u cant code, see editorial) 2 — just try to solve more ;D

»
15 месяцев назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

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!