QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#773747#5149. Best Carry PlayerZhangYiDeWA 16ms3612kbC++23775b2024-11-23 10:13:282024-11-23 10:13:29

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3612kb

input:

2
3
9 99 999
1
12345

output:

5
0

result:

ok 2 number(s): "5 0"

Test #2:

score: 0
Accepted
time: 16ms
memory: 3520kb

input:

100000
1
481199252
1
634074578
1
740396295
1
579721198
1
503722503
1
202647942
1
268792718
1
443917727
1
125908043
1
717268783
1
150414369
1
519096230
1
856168102
1
674936674
1
274667941
1
527268921
1
421436316
1
286802932
1
646837311
1
451394766
1
105650419
1
302790137
1
254786900
1
76141081
1
7393...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 100000 numbers

Test #3:

score: -100
Wrong Answer
time: 8ms
memory: 3504kb

input:

10000
10
598196518 640274071 983359971 71550121 96204862 799843967 446173607 796619138 402690754 223219513
10
312183499 905549873 673542337 566661387 879397647 434495917 631413076 150918417 579868000 224422012
10
525305826 535526356 404334728 653535984 998133227 879226371 59632864 356493387 62611196...

output:

42
42
43
36
45
38
47
41
43
50
36
45
47
44
44
48
46
46
45
50
47
50
48
52
52
50
52
57
47
54
50
54
55
56
55
50
66
55
59
50
62
61
65
61
55
62
59
62
60
60
56
67
62
67
62
64
66
61
61
71
64
66
67
69
71
73
70
73
70
73
68
73
70
76
74
74
77
77
76
76
73
78
73
80
79
79
83
75
77
83
81
77
78
85
84
85
87
89
77
83
...

result:

wrong answer 2nd numbers differ - expected: '41', found: '42'