strawhatdragon's blog

By strawhatdragon, history, 2 years ago, In English

I am getting TLE for C and D. Any hints ?

My Submission for C My Submission for D

Full text and comments »

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

By strawhatdragon, history, 3 years ago, In English

I tried a solution based on dp but I am getting WA: link to my solution: https://codeforces.net/contest/1113/submission/136000085

I got the greedy approach, just want to know if it can be solved using dp and what I am missing in dp.

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By strawhatdragon, history, 3 years ago, In English

I am not able to find a counter example for my solution: https://codeforces.net/contest/1480/submission/135897388

Thanks

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By strawhatdragon, history, 3 years ago, In English

Not sure what I am missing in logic. Help !

Link to my solution: https://codeforces.net/contest/1593/submission/134690219

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By strawhatdragon, history, 3 years ago, In English

Here is my solution: https://codeforces.net/contest/1436/submission/131680312

For all the numbers in the test case, the sum I get for the rows and columns is a prime number, but it still fails. Any help is appreciated.

2-5 3-11 4-19 5-29 6-41 7-55 8-71 9-89 10-109 100-10099

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By strawhatdragon, history, 3 years ago, In English

Hi All

I am not able to see where the logic fails, any help?

https://codeforces.net/contest/1472/submission/120840001

Thanks

Full text and comments »

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

By strawhatdragon, history, 3 years ago, In English

Hi All

Can someone help find the fault in the logic ?

https://codeforces.net/contest/1534/submission/119410596

Regards

Full text and comments »

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

By strawhatdragon, history, 4 years ago, In English

While solving 230A I came across a failing test case 104218672 1 2 1 0 1 0

This is should result in YES, I think, but the judges say that it is NO. Can someone explain to me why this is NO?

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it