Page 4 of 4
Re: 790 - Head Judge Headache
Posted: Thu Feb 12, 2015 10:14 pm
by brianfry713
Don't double post.
Input:
Code: Select all
1
1 A 0:50 N
3 A 1:12 Y
2 B 1:19 N
1 A 1:20 Y
2 B 1:35 N
1 B 1:36 N
3 B 1:40 Y
3 C 1:41 N
4 A 1:40 Y
9 D 0:20 Y
AC output:
Code: Select all
RANK TEAM PRO/SOLVED TIME
1 3 2 172
2 9 1 20
3 1 1 100
3 4 1 100
5 2
5 5
5 6
5 7
5 8
Re: 790 - Head Judge Headache
Posted: Sat Feb 14, 2015 12:21 am
by BlackBeard
I got AC. But can you explain why the last 5 teams in the output should be in rank 5 instead of rank 4? It doesn't make sense...
Re: 790 - Head Judge Headache
Posted: Tue Feb 17, 2015 11:27 pm
by brianfry713
There are 2 teams tied for rank 3.
Re: 790 - Head Judge Headache
Posted: Sat Jun 04, 2016 4:51 pm
by taraprasad73
My code is able to pass both test cases present in UDEBUG but still I am getting a WA verdict on the judge. Any suggestions?
Re: 790 - Head Judge Headache
Posted: Fri Oct 14, 2016 10:11 pm
by Filipe Herculano
Guys, I really think this problem should be reformulated or taken of the book. After 20+ failed submissions, I managed to think in a specific test case:
This is the input:
Code: Select all
1
1 A 100:00 Y
2 B 100:00 Y
3 C 100:00 Y
4 D 100:00 Y
5 E 100:00 Y
6 F 100:00 Y
7 G 100:00 Y
8 H 100:00 Y
9 I 100:00 Y
10 J 100:00 Y
11 L 100:00 Y
12 M 100:00 Y
13 N 100:00 Y
14 O 100:00 Y
15 P 100:00 Y
16 Q 100:00 Y
17 R 100:00 Y
18 S 100:00 Y
19 T 100:00 Y
20 U 100:00 Y
21 V 100:00 Y
22 X 100:00 Y
23 K 100:00 Y
24 W 100:00 Y
25 Y 100:00 Y
This is the correct output:
Code: Select all
RANK TEAM PRO/SOLVED TIME
1 1 1 6000
1 2 1 6000
1 3 1 6000
1 4 1 6000
1 5 1 6000
1 6 1 6000
1 7 1 6000
1 8 1 6000
1 9 1 6000
1 10 1 6000
1 11 1 6000
1 12 1 6000
1 13 1 6000
1 14 1 6000
1 15 1 6000
1 16 1 6000
1 17 1 6000
1 18 1 6000
1 19 1 6000
1 20 1 6000
1 21 1 6000
1 22 1 6000
1 23 1 6000
1 24 1 6000
1 25 1 6000
Among all the wrong things in the problem description, this is the most hideous one. He says that the problem letter goes from A to G:
Problem Letter(A..G)
Guess what ? It goes from A to f***ing Z.
