Search found 6 matches

by shu
Fri Jun 09, 2006 4:02 am
Forum: Volume 104 (10400-10499)
Topic: 10496 - Collecting Beepers
Replies: 19
Views: 10097

10496 Should Be Rejudged...

Strange!! I try to use greedy & bfs to solve this problem, but WHY i got AC??

My code failed for this input:

Code: Select all

1
20 20
1 10
3
1 11
1 8
1 15
It should return 14, but my code return 16!!

rejudge? =)
by shu
Tue Nov 22, 2005 7:27 am
Forum: Volume 106 (10600-10699)
Topic: 10684 - The jackpot
Replies: 34
Views: 19013

result is a variable containing the maximum-streak from each testcase. Ofcourse I have it initialized properly. In the problem description, we can found that there will be NO 0 (zero) bet in each input-set, only negative or positive value will exists. Do we agree with this? If so, I think it's clea...
by shu
Fri Sep 16, 2005 5:01 pm
Forum: Volume 106 (10600-10699)
Topic: 10684 - The jackpot
Replies: 34
Views: 19013

0 bet?

hmm.. i don't understand. I think there's an invalid statement in this problem. Each bet is an integer greater than 0 and less than 1000. which means 0 < bet < 1000, right? but i got WA because of this one... if ( result < 0 ) puts( "Losing streak." ); and i got AC when.. if ( result <= 0 ) puts( "L...
by shu
Sun Aug 14, 2005 12:23 pm
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 28986

[quote="Antonio Ocampo"]
Therefore H>=L always , so isn
by shu
Sun Aug 14, 2005 10:33 am
Forum: Volume 2 (200-299)
Topic: 255 - Correct Move
Replies: 17
Views: 4403

Your code failed when there's any input like : 0 1 9 It should output 'Stop' instead of 'Continue'. Tips : Do checking step by step, ie. first check for 'Illegal state', then 'Illegal move', 'Move not allowed', 'Stop', and finally 'Continue' if the input pass all the checking. This way your code wil...
by shu
Sun Aug 14, 2005 7:54 am
Forum: Volume 1 (100-199)
Topic: 191 - Intersection
Replies: 103
Views: 18686

The terms top left and bottom right do not imply any ordering of coordinates.
It means 'left' in this problem is not really-left in common sense :)
tricky statement it is.

Go to advanced search