QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#592371#5653. Library gameZhangYiDeWA 1ms3724kbC++202.4kb2024-09-26 22:08:502024-09-26 22:08:50

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3724kb

input:

5 14
3 7 2 3 10
7
14
2
4
6

output:

Alessia
10 1
7 8
3 1
3 3
2 5

result:

ok Contestant won the game

Test #2:

score: 0
Accepted
time: 1ms
memory: 3604kb

input:

4 10
4 1 6 4
6 1
4 5
4 6
1 9

output:

Bernardo
4
8
8
9

result:

ok Contestant won the game

Test #3:

score: 0
Accepted
time: 1ms
memory: 3580kb

input:

100 4000
584 96 57 44 47 123 325 102 145 58 46 324 62 80 66 84 45 44 84 159 451 55 95 76 41 63 54 302 67 40 407 48 51 443 2719 267 202 179 116 43 41 116 56 483 59 104 250 41 124 43 98 373 218 62 60 50 50 125 226 127 429 18 79 82 1884 48 70 46 165 75 43 261 68 42 59 40 50 49 76 70 43 104 69 1215 53 1...

output:

Bernardo
53
106
159
212
265
318
371
424
477
530
583
636
689
742
795
848
901
954
1007
1060
1113
1166
1219
1272
1325
1378
1431
1484
1537
1590
1643
1696
1749
1802
1855
1908
1961
2014
2067
2120
2173
2226
2279
2332
2385
2438
2491
2544
2597
2650
2703
2756
2809
2862
2915
2968
3021
3074
3127
3180
3233
3286
...

result:

ok Contestant won the game

Test #4:

score: 0
Accepted
time: 1ms
memory: 3572kb

input:

100 3000
187 125 150 31 61 30 32 44 79 468 97 51 145 130 38 50 39 75 54 91 844 37 35 595 334 36 34 121 72 66 77 41 93 118 31 88 115 42 2301 40 31 66 30 47 172 32 44 226 319 44 32 62 60 52 244 85 30 165 39 42 49 406 90 179 202 103 41 68 35 51 55 34 54 69 46 251 38 733 100 1095 58 110 41 32 83 64 73 1...

output:

Alessia
2301 1
1095 116
844 231
733 346
595 461
468 576
406 691
334 806
319 921
272 1036
251 1151
244 1266
226 1381
202 1496
187 1611
179 1726
172 1841
165 1956
150 2071
145 2186
137 2301
130 2416
125 2531
121 2646
118 2761
115 2876
110 1
103 3
100 116
97 231
93 346
91 368
90 461
88 142
85 468
83 57...

result:

ok Contestant won the game

Test #5:

score: 0
Accepted
time: 1ms
memory: 3656kb

input:

100 3000
98 31 35 56 269 41 34 39 114 122 36 56 50 60 52 114 78 46 37 178 75 30 63 148 60 168 34 141 44 87 73 49 32 31 41 37 101 145 71 840 30 32 42 42 30 192 55 69 38 102 257 38 250 69 38 30 203 346 47 44 834 79 36 42 66 72 148 44 33 460 106 50 934 76 82 131 303 27 64 40 32 122 49 33 141 93 633 32 ...

output:

Bernardo
69
138
207
276
345
414
483
552
621
690
759
828
897
966
1035
1104
1173
1242
1311
1380
1449
1518
1587
1656
1725
1794
1863
1932
2001
2070
2139
2208
2277
2346
2415
2484
2553
2622
2691
2760
2829
2898
2967
69
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
70
29
30
31
7...

result:

ok Contestant won the game

Test #6:

score: 0
Accepted
time: 0ms
memory: 3616kb

input:

100 4500
68 62 66 246 54 160 52 160 79 131 88 91 95 172 50 369 70 54 60 66 220 51 62 52 76 1743 64 81 125 67 848 265 53 59 84 232 1096 1210 83 190 56 601 136 459 57 48 115 95 115 300 89 425 64 102 60 109 60 104 3057 56 311 47 47 174 49 50 153 77 546 185 46 45 29 46 121 134 72 71 204 395 143 112 107 ...

output:

Alessia
3057 1
1743 347
1210 693
1096 1039
848 1385
679 1731
601 2077
546 2423
459 2769
425 3115
395 3461
369 3807
346 4153
311 1
300 347
265 347
258 693
246 1039
232 1385
220 1410
210 1457
204 1496
190 143
185 1533
174 862
172 1039
160 143
160 347
153 693
145 693
143 143
136 1
134 1223
131 1240
128...

result:

ok Contestant won the game

Test #7:

score: 0
Accepted
time: 0ms
memory: 3656kb

input:

100 4500
112 77 315 147 57 46 208 82 73 58 91 88 65 185 60 58 447 134 78 258 139 53 62 102 281 123 91 60 517 85 704 107 154 48 96 131 50 56 1367 63 406 56 222 265 69 1075 78 610 71 48 45 165 142 66 47 95 70 248 73 45 60 75 165 439 89 68 174 50 51 165 71 83 80 52 478 116 47 373 67 232 203 52 55 181 1...

output:

Bernardo
165
330
495
660
825
990
1155
1320
1485
1650
1815
1980
2145
2310
2475
2640
2805
2970
3135
3300
3465
3630
3795
3960
4125
4290
4455
3300
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
5...

result:

ok Contestant won the game

Test #8:

score: 0
Accepted
time: 1ms
memory: 3628kb

input:

10 10
2 4 1 1 2 1 2 1 1 6
2
4
6
8
10
1
3
5
7
9

output:

Alessia
6 1
4 3
2 5
2 7
2 9
1 1
1 3
1 5
1 7
1 9

result:

ok Contestant won the game

Test #9:

score: -100
Wrong Answer
time: 1ms
memory: 3588kb

input:

10 10
1 1 5 1 1 2 9 5 1 2
9 1
5 6

output:

Bernardo
5
11

result:

wrong answer Integer 11 violates the range [6, 10]