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

Evil Cheater An AC problem that does NOT work. [3] // Problem 1261. Tips 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. [1] // Problem 1261. Tips 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!!!
Maigo Akisame (maigoakisame@yahoo.com.cn) Why must tip be all 1 and 0 in base 3? // Problem 1261. Tips 23 Sep 2004 20:01
Vladimir Yakovlev (USU) Fixed. // Problem 1261. Tips 23 Apr 2004 13:59