daizhenyang's blog

By daizhenyang, 9 years ago, In English
Who can tell me the correct solution about it.
I find almost more than half of the Accepted solution didn't passed my case
12
-5 0
2 3 4 5 6 7 8 9 10 11

13
-5 0
2 3 4 5 6 7 8 9 10 11 15

18
-10 -5 0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

19
-10 -5 0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 20

Read more »

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

By daizhenyang, 10 years ago, In English
http://codeforces.com/problemset/problem/28/B
The writer provides a simple solution,but I don't know how to prove the solution is correct. Who can explain it?

Read more »

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