QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#115019#5850. Candy StoreMaMengQi0 9ms3532kbC++17531b2023-06-24 14:03:532023-06-24 14:03:54

詳細信息

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3532kb

input:

100
2 3
3 3
13 1
20 2
6 3
5 3
3 1
7 2
15 1
4 3
1 1
14 3
1 3
17 1
10 2
12 2
9 1
14 1
5 2
6 3
13 2
18 2
17 3
2 3
18 3
16 1
19 2
17 1
11 3
20 3
3 1
8 3
7 3
18 1
11 2
20 3
7 2
4 3
1 2
7 2
10 1
17 3
5 2
14 1
2 1
3 1
4 1
17 2
8 2
5 1
18 1
8 1
15 3
10 2
6 2
20 1
15 3
1 3
3 2
17 1
14 1
3 2
9 3
16 3
15 2
12 ...

output:

4
6
13
30
11
10
3
11
15
8
1
26
2
17
15
18
9
14
8
11
20
27
32
4
33
16
29
17
21
37
3
15
13
18
17
37
11
8
2
11
10
32
8
14
2
3
4
26
12
5
18
8
28
15
9
20
28
2
5
17
14
5
17
30
23
12
27
14
4
17
15
2
14
13
7
27
21
3
2
6
19
8
9
6
10
22
24
11
24
35
6
15
21
19
11
17
6
16
6
15

result:

wrong answer 1st lines differ - expected: 'Case #1: 4', found: '4'

Subtask #2:

score: 0
Wrong Answer

Test #2:

score: 0
Wrong Answer
time: 9ms
memory: 3520kb

input:

100
984 4
830 901580635835
937 117926240831
1000 62009
1000 11
656 187600851857
577 732239839666
149 276944
401 126493510574
1000 696570219424
765 796394824105
422 120213965166
686 140
1000 431774067439
106 351578631166
374 279760528652
1 1000000000000
1000 134489424902
25 909266561260
402 333089014...

output:

2050
23340
24441
11617
3021
17420
16110
1960
10495
27860
21419
11023
3790
27381
2892
10087
40
26215
717
10911
28117
27120
26873
21777
25350
27858
23029
11508
4153
28194
27621
28021
143
27818
27570
18711
27606
23387
16992
1001
3375
28222
26683
27050
13126
6566
26592
1696
9511
26053
20640
6608
27151
2...

result:

wrong answer 1st lines differ - expected: 'Case #1: 2050', found: '2050'