10
45 5 6 C
15 9 7 E
39 3 11 I
82 6 18 U
48 4 21 R
18 8 30 R
39 7 37 R
27 7 46 E
74 7 55 E
13 1 60 C
57 5 68 C
27 3 69 C
45 7 73 E
64 8 79 R
84 3 80 E
68 4 86 U
86 1 5 C
43 6 5 I
37 7 11 I
12 4 13 I
93 5 18 R
40 9 26 R
84 7 31 U
65 6 31 U
16 3 36 R
41 1 39 R
4 6 39 C
43 5 46 E
97 2 54 E
33 5 60 I
21 8 60 C
95 2 68 C
11 2 75 U
98 2 82 I
33 2 2 R
14 4 9 U
26 9 13 E
56 1 22 U
2 5 23 E
17 7 29 E
97 7 32 R
79 5 37 R
95 7 42 E
64 9 49 C
57 5 56 U
96 3 60 U
27 8 68 E
14 9 68 C
70 1 70 R
17 1 79 C
77 9 86 R
97 2 93 E
73 2 101 I
40 2 110 U
39 2 117 E
72 6 126 I
21 5 126 C
63 9 129 C
35 2 133 E
99 4 141 C
56 4 144 C
2 4 148 U
76 6 5 I
65 8 12 C
71 3 20 U
63 5 2 C
90 4 11 U
64 6 19 U
10 5 22 I
79 4 26 E
20 6 30 I
90 7 39 I
23 4 40 R
9 5 47 R
38 3 10 E
60 9 16 U
49 3 23 I
89 8 28 R
91 6 37 E
28 6 40 U
25 2 45 I
82 2 45 E
13 3 49 R
45 3 56 R
72 3 60 I
92 1 60 R
37 7 61 U
94 1 67 C
44 7 68 C
12 8 73 E
79 4 81 R
7 8 83 C
47 8 10 E
99 3 18 E
56 4 26 C
21 6 35 E
18 5 42 U
71 2 42 U
80 3 45 C
2 3 47 C
20 7 56 U
23 5 60 I
74 5 63 C
63 4 67 E
96 1 70 E
86 5 72 C
12 1 10 I
10 7 19 I
77 6 19 U
48 9 21 U
88 7 28 E
86 8 29 I
60 1 38 R
94 4 6 R
29 3 13 C
7 2 15 U
98 6 22 I
75 4 30 U
59 5 30 U
68 6 37 I
69 8 38 I
22 7 42 C
74 7 42 I
99 2 43 C
20 1 52 I
2 1 61 E
8 7 68 E
7 3 71 I
30 3 74 U
30 2 82 R
88 8 87 R
77 9 92 R
69 1 100 C
89 6 109 U
64 1 109 I
83 2 116 I
41 8 125 R
43 9 129 E
56 9 137 R
56 3 9 I
16 6 15 C
96 2 17 C
7 3 19 C
51 3 22 C
hi Brianfry713, for the 2nd-last test case in your sample test input, shouldn't the value of penalty for 69 be 120 instead of 100 ? because the question says that 20 min will be added to the penalty for each incorrect solution prior to the correct solution.
This (and many other problems in UVa) says the output cases are separated by new lines. This in no sense says that the last output case should have a new line at the end. But you will get WA if don't put new line at the end of last output case, ie. you get WA if pay the exact attention to the detail provided instead of being a dumb-ass as the problem setter wants you to be, or rather, as the problem setter himself is...
Got WA a number of times just because of paying exact attention to detail...