Search found 8 matches

by Neil
Tue Aug 07, 2012 8:29 pm
Forum: Volume 100 (10000-10099)
Topic: 10039 - Railroads
Replies: 20
Views: 12913

Re: 10039 - Railroads

The problem statement says nothing of the sort, but you seem to know what you're doing so ok thanks.
by Neil
Sat Jul 28, 2012 4:33 am
Forum: Volume 100 (10000-10099)
Topic: 10039 - Railroads
Replies: 20
Views: 12913

Re: 10039 - Railroads

How could that be the answer? There's no train at C at time 0622. (0622 isn't in the input times at all)
My output is

Code: Select all

Scenario 1
Departure 0582 C
Arrival   1419 G
by Neil
Fri Jul 27, 2012 5:26 am
Forum: Volume 100 (10000-10099)
Topic: 10051 - Tower of Cubes
Replies: 19
Views: 11805

Re: 10051 - Tower of Cubes

Oh I didn't see the part that says the list is from top to bottom - I thought it was bottom to top.
Thanks, got accepted now :)
by Neil
Fri Jul 27, 2012 5:21 am
Forum: Volume 100 (10000-10099)
Topic: 10039 - Railroads
Replies: 20
Views: 12913

Re: 10039 - Railroads

This problem makes no sense. I was testing random cases with the UVA toolkit, and I learned that it's wrong to assume that Jill can't go back in time.
For this case

1
10
A
B
C
D
E
F
G
H
I
J
5
6
0072 B
1233 E
1975 F
0531 G
1223 I
0494 J
3
0661 B
1477 I
1602 J
4
1034 F
0567 G
1618 I
1218 J
8
0582 C ...
by Neil
Sun Jul 22, 2012 6:25 am
Forum: Volume 100 (10000-10099)
Topic: 10051 - Tower of Cubes
Replies: 19
Views: 11805

Re: 10051 - Tower of Cubes

Is it just me, or is this problem statement more than a little contradictory?
It says "Print a blank line between two successive test cases" but the sample output doesn't have any blank lines.
It also says that we should print the identification string of the top face, but the sample output shows ...
by Neil
Sat Jul 14, 2012 5:34 am
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 51975

Re: 105 - The Skyline Problem

What should the output be for this case?

Code: Select all

1 2 9
5 7 13
13 7 17
21 2 24
23 6 27
24 10 30
27 6 32
The UVa toolkit gives
1 2 5 7 17 0 21 2 23 6 24 10 30 0
But shouldn't it be
1 2 5 7 17 0 21 2 23 6 24 10 30 6 32 0
?
by Neil
Sat Jun 23, 2012 10:32 pm
Forum: Volume 103 (10300-10399)
Topic: 10315 - Poker Hands
Replies: 63
Views: 39041

Re: 10315 - Poker Hands

I've been testing my solution with the UVa toolkit, and I found a couple cases that I don't understand.
1) 2H 3H TH 5H KH 3D JD KD 2D 2D
Output is "Black wins." Shouldn't it be white? Both are flushes, the highest card is a king, then white has a higher second-highest card (jack vs ten).
2) 8C 9C ...
by Neil
Sat Jun 23, 2012 8:40 pm
Forum: Volume 101 (10100-10199)
Topic: 10149 - Yahtzee
Replies: 20
Views: 16141

Re: 10149 - Yahtzee

I’m surprised no one’s asked about the number of test cases in the input file, so I’ll be the first. The problem statement just says “there may be any number of games in the input data”, which is really unfair because it doesn’t give any sense of how fast a solution needs to be. Any number could be ...

Go to advanced search