mr_dreamer's blog

By mr_dreamer, history, 4 years ago, In English

my solution is giving the wrong answer to The Treasure of The Segments please help me finding the test case where my solution is wrong?

solution link — https://codeforces.net/contest/1462/submission/101416335.

thanks in advance.

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

| Write comment?
»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

take a solution that works (mine for example). generate some test cases and run both solutions.

»
4 years ago, # |
  Vote: I like it +1 Vote: I do not like it

This is one which I found:

4
2 4
3 3
4 5
5 5

Your answer:0

Correct answer:1