TangyStone8's blog

By TangyStone8, history, 5 years ago, In English

I always find myself looking at the solution for DP problems after spending an hour or so. This has happened many times, and yet I haven't developed any routine for detecting and solving the DP problems. Even when I do detect that the problem is DP, I struggle with the solution. What do I do to develop a thought process to solve DP ?

Full text and comments »

  • Vote: I like it
  • +6
  • Vote: I do not like it

By TangyStone8, history, 6 years ago, In English

Here is the submission..... https://codeforces.me/contest/1490/submission/108030618

It works in other online editors if i copy paste the Test 1... But it gives TLE on test 1 on submission.

Full text and comments »

  • Vote: I like it
  • -16
  • Vote: I do not like it