ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1036. Lucky Tickets

What is the right answer for the test "10 2" ?
Posted by mitrandir 3 Apr 2007 13:45
100 (-)
Posted by Orlangur [KievNU] 3 Apr 2007 19:10
Re: 100 (-)
Posted by mitrandir 4 Apr 2007 14:38
Ok, 100. I agree, but one solution (not my) gets AC and gives answer 0!
My solution gives answer 100, but does not get AC.
It does not means, than my solution is wright, but it means, that wrong solution can get AC!
Re: 100 (-)
Posted by Anisimov Dmitry 22 Apr 2008 20:32
You can make wrong solution that gets AC very easily.
Suppose K in problem can be from 1 to 1000.
Take right solution.
Add a line like this:
if(K==345 /* random value */) *(int*)0=0;
Voila.

Edited by author 22.04.2008 20:33

Edited by author 22.04.2008 20:33
Re: 100 (-)
Posted by Fessmax 13 Nov 2008 21:19
How does this line can help?