add input output files
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- 2011/finals/alien_game_sample_input.txt +11 -0
- 2011/finals/alien_game_sample_output.txt +5 -0
- 2011/finals/party_time_sample_input.txt +57 -0
- 2011/finals/party_time_sample_output.txt +5 -0
- 2011/finals/safest_place_sample_input.txt +81 -0
- 2011/finals/safest_place_sample_output.txt +5 -0
- 2011/quals/double_squares_sample_input.txt +6 -0
- 2011/quals/double_squares_sample_output.txt +5 -0
- 2011/quals/peg_game_sample_input.txt +6 -0
- 2011/quals/peg_game_sample_output.txt +5 -0
- 2011/quals/studious_student_sample_input.txt +6 -0
- 2011/quals/studious_student_sample_output.txt +5 -0
- 2011/round1a/diversity_number_sample_input.txt +11 -0
- 2011/round1a/diversity_number_sample_output.txt +5 -0
- 2011/round1a/turn_on_the_lights_sample_input.txt +42 -0
- 2011/round1a/turn_on_the_lights_sample_output.txt +5 -0
- 2011/round1a/wine_tasting_sample_input.txt +6 -0
- 2011/round1a/wine_tasting_sample_output.txt +5 -0
- 2011/round1b/chess_2_sample_input.txt +33 -0
- 2011/round1b/chess_2_sample_output.txt +5 -0
- 2011/round1b/diminishing_circle_sample_input.txt +6 -0
- 2011/round1b/diminishing_circle_sample_output.txt +5 -0
- 2011/round1b/slot_machine_hacker_sample_input.txt +6 -0
- 2011/round1b/slot_machine_hacker_sample_output.txt +5 -0
- 2011/round1c/n_factorful_sample_input.txt +6 -0
- 2011/round1c/n_factorful_sample_output.txt +5 -0
- 2011/round1c/polynomial_factoring_sample_input.txt +11 -0
- 2011/round1c/polynomial_factoring_sample_output.txt +5 -0
- 2011/round1c/risky_slide_sample_input.txt +16 -0
- 2011/round1c/risky_slide_sample_output.txt +5 -0
- 2011/round2/bonus_assignments_sample_input.txt +6 -0
- 2011/round2/bonus_assignments_sample_output.txt +5 -0
- 2011/round2/scotts_new_trick_sample_input.txt +16 -0
- 2011/round2/scotts_new_trick_sample_output.txt +5 -0
- 2011/round2/studious_student_ii_sample_input.txt +6 -0
- 2011/round2/studious_student_ii_sample_output.txt +5 -0
- 2012/finals/linsane_phone_numbers_sample_input.txt +6 -0
- 2012/finals/linsane_phone_numbers_sample_output.txt +5 -0
- 2012/finals/maximal_multiplicative_order_sample_input.txt +6 -0
- 2012/finals/maximal_multiplicative_order_sample_output.txt +5 -0
- 2012/finals/possible_medians_sample_input.txt +30 -0
- 2012/finals/possible_medians_sample_output.txt +5 -0
- 2012/quals/alphabet_soup_sample_input.txt +6 -0
- 2012/quals/alphabet_soup_sample_output.txt +5 -0
- 2012/quals/auction_sample_input.txt +6 -0
- 2012/quals/auction_sample_output.txt +5 -0
- 2012/quals/billboards_sample_input.txt +6 -0
- 2012/quals/billboards_sample_output.txt +5 -0
- 2012/round1/checkpoint_sample_input.txt +6 -0
- 2012/round1/checkpoint_sample_output.txt +5 -0
2011/finals/alien_game_sample_input.txt
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
3 2
|
3 |
+
1 2 3
|
4 |
+
3 2
|
5 |
+
-2 1 -1
|
6 |
+
4 2
|
7 |
+
4 3 2 1
|
8 |
+
4 3
|
9 |
+
1 -2 3 -4
|
10 |
+
5 3
|
11 |
+
1 2 2 4 -1
|
2011/finals/alien_game_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 2
|
2 |
+
Case #2: 1
|
3 |
+
Case #3: 5
|
4 |
+
Case #4: 2
|
5 |
+
Case #5: 2
|
2011/finals/party_time_sample_input.txt
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
3 2 2
|
3 |
+
0 2
|
4 |
+
1 2
|
5 |
+
1 2 3
|
6 |
+
4 2 4
|
7 |
+
0 2
|
8 |
+
0 3
|
9 |
+
1 2
|
10 |
+
1 3
|
11 |
+
0 0 1000 11
|
12 |
+
8 3 13
|
13 |
+
0 4
|
14 |
+
0 5
|
15 |
+
1 3
|
16 |
+
1 4
|
17 |
+
1 7
|
18 |
+
2 7
|
19 |
+
2 6
|
20 |
+
3 4
|
21 |
+
3 7
|
22 |
+
3 5
|
23 |
+
3 6
|
24 |
+
4 5
|
25 |
+
6 7
|
26 |
+
4 10 14 100 99 24 25 50
|
27 |
+
10 5 15
|
28 |
+
0 8
|
29 |
+
0 5
|
30 |
+
1 5
|
31 |
+
1 9
|
32 |
+
1 8
|
33 |
+
1 6
|
34 |
+
2 9
|
35 |
+
3 6
|
36 |
+
3 5
|
37 |
+
3 8
|
38 |
+
4 8
|
39 |
+
4 6
|
40 |
+
4 5
|
41 |
+
5 6
|
42 |
+
6 7
|
43 |
+
6 4 7 3 3 1 2 3 7 4
|
44 |
+
11 7 12
|
45 |
+
0 10
|
46 |
+
1 8
|
47 |
+
1 9
|
48 |
+
2 8
|
49 |
+
2 10
|
50 |
+
3 8
|
51 |
+
4 9
|
52 |
+
5 9
|
53 |
+
6 10
|
54 |
+
6 7
|
55 |
+
8 9
|
56 |
+
8 10
|
57 |
+
7 5 4 3 2 7 0 9 7 5 5
|
2011/finals/party_time_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 6 3
|
2 |
+
Case #2: 11 3
|
3 |
+
Case #3: 177 5
|
4 |
+
Case #4: 28 7
|
5 |
+
Case #5: 45 10
|
2011/finals/safest_place_sample_input.txt
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
5
|
3 |
+
0 0 0
|
4 |
+
1000 1000 1000
|
5 |
+
1000 500 0
|
6 |
+
0 1000 500
|
7 |
+
500 0 1000
|
8 |
+
10
|
9 |
+
0 0 0
|
10 |
+
1000 1000 1000
|
11 |
+
1000 500 0
|
12 |
+
0 1000 500
|
13 |
+
500 0 1000
|
14 |
+
583 583 583
|
15 |
+
1000 0 500
|
16 |
+
500 1000 0
|
17 |
+
0 500 1000
|
18 |
+
625 0 0
|
19 |
+
15
|
20 |
+
0 0 0
|
21 |
+
1000 1000 1000
|
22 |
+
1000 500 0
|
23 |
+
0 1000 500
|
24 |
+
500 0 1000
|
25 |
+
583 583 583
|
26 |
+
1000 0 500
|
27 |
+
500 1000 0
|
28 |
+
0 500 1000
|
29 |
+
625 0 0
|
30 |
+
0 625 0
|
31 |
+
0 0 625
|
32 |
+
1000 1000 375
|
33 |
+
1000 375 1000
|
34 |
+
375 1000 1000
|
35 |
+
20
|
36 |
+
0 0 0
|
37 |
+
1000 1000 1000
|
38 |
+
1000 500 0
|
39 |
+
0 1000 500
|
40 |
+
500 0 1000
|
41 |
+
583 583 583
|
42 |
+
1000 0 500
|
43 |
+
500 1000 0
|
44 |
+
0 500 1000
|
45 |
+
625 0 0
|
46 |
+
0 625 0
|
47 |
+
0 0 625
|
48 |
+
1000 1000 375
|
49 |
+
1000 375 1000
|
50 |
+
375 1000 1000
|
51 |
+
491 491 84
|
52 |
+
491 84 491
|
53 |
+
84 491 491
|
54 |
+
1000 453 453
|
55 |
+
453 1000 453
|
56 |
+
25
|
57 |
+
0 0 0
|
58 |
+
1000 1000 1000
|
59 |
+
1000 500 0
|
60 |
+
0 1000 500
|
61 |
+
500 0 1000
|
62 |
+
583 583 583
|
63 |
+
1000 0 500
|
64 |
+
500 1000 0
|
65 |
+
0 500 1000
|
66 |
+
625 0 0
|
67 |
+
0 625 0
|
68 |
+
0 0 625
|
69 |
+
1000 1000 375
|
70 |
+
1000 375 1000
|
71 |
+
375 1000 1000
|
72 |
+
491 491 84
|
73 |
+
491 84 491
|
74 |
+
84 491 491
|
75 |
+
1000 453 453
|
76 |
+
453 1000 453
|
77 |
+
453 453 1000
|
78 |
+
891 891 0
|
79 |
+
891 0 891
|
80 |
+
0 891 891
|
81 |
+
1000 109 109
|
2011/finals/safest_place_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 520667
|
2 |
+
Case #2: 390625
|
3 |
+
Case #3: 265929
|
4 |
+
Case #4: 207418
|
5 |
+
Case #5: 164387
|
2011/quals/double_squares_sample_input.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
10
|
3 |
+
25
|
4 |
+
3
|
5 |
+
0
|
6 |
+
1
|
2011/quals/double_squares_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 1
|
2 |
+
Case #2: 2
|
3 |
+
Case #3: 0
|
4 |
+
Case #4: 1
|
5 |
+
Case #5: 1
|
2011/quals/peg_game_sample_input.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
5 4 0 1 2 2
|
3 |
+
3 4 1 1 1 1
|
4 |
+
3 3 1 2 1 1 1 0
|
5 |
+
3 4 0 2 1 0 1 1
|
6 |
+
3 4 0 1 1 1
|
2011/quals/peg_game_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 0 0.375000
|
2 |
+
Case #2: 1 1.000000
|
3 |
+
Case #3: 1 1.000000
|
4 |
+
Case #4: 0 1.000000
|
5 |
+
Case #5: 0 0.500000
|
2011/quals/studious_student_sample_input.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
6 facebook hacker cup for studious students
|
3 |
+
5 k duz q rc lvraw
|
4 |
+
5 mybea zdr yubx xe dyroiy
|
5 |
+
5 jibw ji jp bw jibw
|
6 |
+
5 uiuy hopji li j dcyi
|
2011/quals/studious_student_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: cupfacebookforhackerstudentsstudious
|
2 |
+
Case #2: duzklvrawqrc
|
3 |
+
Case #3: dyroiymybeaxeyubxzdr
|
4 |
+
Case #4: bwjibwjibwjijp
|
5 |
+
Case #5: dcyihopjijliuiuy
|
2011/round1a/diversity_number_sample_input.txt
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
1
|
3 |
+
1
|
4 |
+
2
|
5 |
+
2 1
|
6 |
+
3
|
7 |
+
1 3 2
|
8 |
+
4
|
9 |
+
1 3 1 2
|
10 |
+
4
|
11 |
+
2 3 4 3
|
2011/round1a/diversity_number_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 2
|
2 |
+
Case #2: 5
|
3 |
+
Case #3: 15
|
4 |
+
Case #4: 17
|
5 |
+
Case #5: 80
|
2011/round1a/turn_on_the_lights_sample_input.txt
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
5 6
|
3 |
+
XXXXXX
|
4 |
+
XXX.X.
|
5 |
+
XXXXXX
|
6 |
+
X.XXXX
|
7 |
+
XXXXX.
|
8 |
+
1 13
|
9 |
+
..XXXXXXX.X..
|
10 |
+
11 6
|
11 |
+
XXXXXX
|
12 |
+
XXXXXX
|
13 |
+
XXXXXX
|
14 |
+
XXXXXX
|
15 |
+
XXXXXX
|
16 |
+
XXXXXX
|
17 |
+
XXXXXX
|
18 |
+
.X.XXX
|
19 |
+
XXXX.X
|
20 |
+
XXXXXX
|
21 |
+
XXX.XX
|
22 |
+
10 13
|
23 |
+
..XX...X.X.X.
|
24 |
+
XX..X..X.....
|
25 |
+
.X...........
|
26 |
+
X........X...
|
27 |
+
.....XX..X.X.
|
28 |
+
.X..XX.......
|
29 |
+
.X.....X.X...
|
30 |
+
.X....X......
|
31 |
+
......XX...X.
|
32 |
+
..X....X.....
|
33 |
+
9 3
|
34 |
+
...
|
35 |
+
...
|
36 |
+
...
|
37 |
+
...
|
38 |
+
...
|
39 |
+
..X
|
40 |
+
...
|
41 |
+
...
|
42 |
+
...
|
2011/round1a/turn_on_the_lights_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 14
|
2 |
+
Case #2: 7
|
3 |
+
Case #3: 27
|
4 |
+
Case #4: 65
|
5 |
+
Case #5: 11
|
2011/round1a/wine_tasting_sample_input.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
1 1
|
3 |
+
4 2
|
4 |
+
5 5
|
5 |
+
13 10
|
6 |
+
14 1
|
2011/round1a/wine_tasting_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 1
|
2 |
+
Case #2: 7
|
3 |
+
Case #3: 1
|
4 |
+
Case #4: 651
|
5 |
+
Case #5: 405146859
|
2011/round1b/chess_2_sample_input.txt
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
4
|
3 |
+
Q 1 1
|
4 |
+
B 3 1
|
5 |
+
B 5 1
|
6 |
+
B 1 4
|
7 |
+
|
8 |
+
3
|
9 |
+
S 1 1
|
10 |
+
K 2 3
|
11 |
+
S 3 5
|
12 |
+
|
13 |
+
4
|
14 |
+
N 1 1
|
15 |
+
B 3 3
|
16 |
+
Q 5 5
|
17 |
+
N 4 1
|
18 |
+
|
19 |
+
5
|
20 |
+
R 2 2
|
21 |
+
N 1 2
|
22 |
+
N 2 1
|
23 |
+
N 16 2
|
24 |
+
N 2 16
|
25 |
+
|
26 |
+
6
|
27 |
+
Q 1 1
|
28 |
+
Q 2 3
|
29 |
+
Q 3 5
|
30 |
+
Q 4 2
|
31 |
+
Q 5 4
|
32 |
+
E 1 5
|
33 |
+
|
2011/round1b/chess_2_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 2
|
2 |
+
Case #2: 1
|
3 |
+
Case #3: 3
|
4 |
+
Case #4: 4
|
5 |
+
Case #5: 6
|
2011/round1b/diminishing_circle_sample_input.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
9 3
|
3 |
+
4 1
|
4 |
+
3 2
|
5 |
+
5 4
|
6 |
+
6 9
|
2011/round1b/diminishing_circle_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 1
|
2 |
+
Case #2: 1
|
3 |
+
Case #3: 2
|
4 |
+
Case #4: 2
|
5 |
+
Case #5: 2
|
2011/round1b/slot_machine_hacker_sample_input.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
1 968
|
3 |
+
3 767 308 284
|
4 |
+
5 78 880 53 698 235
|
5 |
+
7 23 786 292 615 259 635 540
|
6 |
+
9 862 452 303 558 767 105 911 846 462
|
2011/round1b/slot_machine_hacker_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: Not enough observations
|
2 |
+
Case #2: 577 428 402 291 252 544 735 545 771 34
|
3 |
+
Case #3: 762 18 98 703 456 676 621 291 488 332
|
4 |
+
Case #4: 38 802 434 531 725 594 86 921 607 35
|
5 |
+
Case #5: Wrong machine
|
2011/round1c/n_factorful_sample_input.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
1 3 1
|
3 |
+
1 10 2
|
4 |
+
1 10 3
|
5 |
+
1 100 3
|
6 |
+
1 1000 0
|
2011/round1c/n_factorful_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 2
|
2 |
+
Case #2: 2
|
3 |
+
Case #3: 0
|
4 |
+
Case #4: 8
|
5 |
+
Case #5: 1
|
2011/round1c/polynomial_factoring_sample_input.txt
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
2 6 11 4
|
3 |
+
1 3 4
|
4 |
+
2 1 2 1
|
5 |
+
1 1 1
|
6 |
+
2 1 0 -1
|
7 |
+
1 1 1
|
8 |
+
1 1 1
|
9 |
+
2 1 2 1
|
10 |
+
5 1 1 1 1 1 1
|
11 |
+
3 1 1 1 1
|
2011/round1c/polynomial_factoring_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 2 1
|
2 |
+
Case #2: 1 1
|
3 |
+
Case #3: 1 -1
|
4 |
+
Case #4: no solution
|
5 |
+
Case #5: no solution
|
2011/round1c/risky_slide_sample_input.txt
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
1 1
|
3 |
+
5
|
4 |
+
2 3
|
5 |
+
112
|
6 |
+
324
|
7 |
+
5 5
|
8 |
+
55555
|
9 |
+
51115
|
10 |
+
51915
|
11 |
+
51115
|
12 |
+
55555
|
13 |
+
1 4
|
14 |
+
5222
|
15 |
+
1 5
|
16 |
+
52222
|
2011/round1c/risky_slide_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 0
|
2 |
+
Case #2: 2
|
3 |
+
Case #3: 3
|
4 |
+
Case #4: 2
|
5 |
+
Case #5: 3
|
2011/round2/bonus_assignments_sample_input.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
2 1 2 4 5
|
3 |
+
2 2 4 3 5
|
4 |
+
1 5 10 5 10
|
5 |
+
5 5 7 2 3
|
6 |
+
5 2 7 5 12
|
2011/round2/bonus_assignments_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 6
|
2 |
+
Case #2: 10
|
3 |
+
Case #3: 0
|
4 |
+
Case #4: 0
|
5 |
+
Case #5: 149190
|
2011/round2/scotts_new_trick_sample_input.txt
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
3 1
|
3 |
+
4 0 2 2 2 2
|
4 |
+
2 1 2 1 0 0
|
5 |
+
3 1
|
6 |
+
5 2 0 0 1 1
|
7 |
+
5 1 1 2 0 0
|
8 |
+
3 3
|
9 |
+
5 0 0 1 2 2
|
10 |
+
3 2 1 1 1 1
|
11 |
+
5 1
|
12 |
+
5 2 0 4 0 4
|
13 |
+
3 2 1 2 4 4
|
14 |
+
5 4
|
15 |
+
2 2 1 3 1 4
|
16 |
+
5 1 0 2 3 3
|
2011/round2/scotts_new_trick_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 6
|
2 |
+
Case #2: 10
|
3 |
+
Case #3: 15
|
4 |
+
Case #4: 3
|
5 |
+
Case #5: 9
|
2011/round2/studious_student_ii_sample_input.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
ab
|
3 |
+
aba
|
4 |
+
aabb
|
5 |
+
ababa
|
6 |
+
bbbbb
|
2011/round2/studious_student_ii_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 3
|
2 |
+
Case #2: 13
|
3 |
+
Case #3: 57
|
4 |
+
Case #4: 642
|
5 |
+
Case #5: 120
|
2012/finals/linsane_phone_numbers_sample_input.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
6 17 7 4
|
3 |
+
7 17 7 4
|
4 |
+
8 17 7 4
|
5 |
+
9 10 5 2
|
6 |
+
20 15 10 1
|
2012/finals/linsane_phone_numbers_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 0 -1
|
2 |
+
Case #2: 97682 9732485
|
3 |
+
Case #3: 3657799 78969251
|
4 |
+
Case #4: 231355703 435255828
|
5 |
+
Case #5: 230877663780393592 90299299274965943891
|
2012/finals/maximal_multiplicative_order_sample_input.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
5 8
|
3 |
+
1 10
|
4 |
+
1 100
|
5 |
+
1234 1234
|
6 |
+
1000000007 1000000007
|
2012/finals/maximal_multiplicative_order_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 12
|
2 |
+
Case #2: 48
|
3 |
+
Case #3: 451289786
|
4 |
+
Case #4: 240
|
5 |
+
Case #5: 500000002
|
2012/finals/possible_medians_sample_input.txt
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
10
|
3 |
+
7 8 1 5 4 3 2 0 6 9
|
4 |
+
3 3
|
5 |
+
3 0 4
|
6 |
+
4 1 5
|
7 |
+
4 3 6
|
8 |
+
10
|
9 |
+
6 4 9 5 3 8 7 1 2 0
|
10 |
+
3 3
|
11 |
+
5 2 9
|
12 |
+
3 2 8
|
13 |
+
3 1 8
|
14 |
+
10
|
15 |
+
6 0 1 7 2 8 3 5 9 4
|
16 |
+
3 3
|
17 |
+
5 0 4
|
18 |
+
3 4 9
|
19 |
+
4 3 9
|
20 |
+
5
|
21 |
+
1 0 4 3 2
|
22 |
+
3 2
|
23 |
+
4 0 5
|
24 |
+
3 0 5
|
25 |
+
3
|
26 |
+
2 0 1
|
27 |
+
3 3
|
28 |
+
0 0 3
|
29 |
+
1 0 3
|
30 |
+
2 0 3
|
2012/finals/possible_medians_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 2
|
2 |
+
Case #2: 1
|
3 |
+
Case #3: 3
|
4 |
+
Case #4: 1
|
5 |
+
Case #5: 1
|
2012/quals/alphabet_soup_sample_input.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
WELCOME TO FACEBOOK HACKERCUP
|
3 |
+
CUP WITH LABEL HACKERCUP BELONGS TO HACKER
|
4 |
+
QUICK CUTE BROWN FOX JUMPS OVER THE LAZY DOG
|
5 |
+
MOVE FAST BE BOLD
|
6 |
+
HACK THE HACKERCUP
|
2012/quals/alphabet_soup_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 1
|
2 |
+
Case #2: 2
|
3 |
+
Case #3: 1
|
4 |
+
Case #4: 0
|
5 |
+
Case #5: 1
|
2012/quals/auction_sample_input.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
5 1 4 5 7 1 0 1 2
|
3 |
+
3 1 3 3 3 1 0 1 1
|
4 |
+
8 1 3 3 3 1 0 1 2
|
5 |
+
13 5 7 5 9 1 3 2 5
|
6 |
+
11 2 3 5 7 11 13 17 19
|
2012/quals/auction_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 3 3
|
2 |
+
Case #2: 3 3
|
3 |
+
Case #3: 2 3
|
4 |
+
Case #4: 2 2
|
5 |
+
Case #5: 3 1
|
2012/quals/billboards_sample_input.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
20 6 hacker cup
|
3 |
+
100 20 hacker cup 2013
|
4 |
+
10 20 MUST BE ABLE TO HACK
|
5 |
+
55 25 Can you hack
|
6 |
+
100 20 Hack your way to the cup
|
2012/quals/billboards_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 3
|
2 |
+
Case #2: 10
|
3 |
+
Case #3: 2
|
4 |
+
Case #4: 8
|
5 |
+
Case #5: 7
|
2012/round1/checkpoint_sample_input.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
5
|
2 |
+
4
|
3 |
+
5
|
4 |
+
12
|
5 |
+
14
|
6 |
+
1
|
2012/round1/checkpoint_sample_output.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Case #1: 4
|
2 |
+
Case #2: 6
|
3 |
+
Case #3: 6
|
4 |
+
Case #4: 9
|
5 |
+
Case #5: 2
|