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

Автор TangyStone8, история, 5 лет назад, По-английски

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 ?

Полный текст и комментарии »

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

Автор TangyStone8, история, 6 лет назад, По-английски

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.

Полный текст и комментарии »

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