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 1261. Tips

An AC problem that does NOT work.
Posted by Evil Cheater 18 Apr 2004 10:01
{584156 09:52:24  18 Apr 2004 Evil Cheater 1261 Pascal Accepted  0.031 373Kb}
Begin
     writeln(output,'14348908 14348907');
End.

I think the judge must chech this things:
1.- pay > check.
2.- pay and tip must be only 1 and 0 in base 3.
3.- pay = check + tip.

Maybe the judge checks 1 and 2, but not 3.
Re: An AC problem that does NOT work.
Posted by 黄源河 22 Apr 2004 18:38
Evil Cheater wrote 18 April 2004 10:01
{584156 09:52:24  18 Apr 2004 Evil Cheater 1261 Pascal Accepted  0.031 373Kb}
Begin
     writeln(output,'14348908 14348907');
End.

I think the judge must chech this things:
1.- pay > check.
2.- pay and tip must be only 1 and 0 in base 3.
3.- pay = check + tip.

Maybe the judge checks 1 and 2, but not 3.

The method is wrong,but gamble!!!
Fixed.
Posted by Vladimir Yakovlev (USU) 23 Apr 2004 13:59
Why must tip be all 1 and 0 in base 3?
Posted by Maigo Akisame (maigoakisame@yahoo.com.cn) 23 Sep 2004 20:01