QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#121028#6117. Determine The Fluctuation BonusHuangHanShengWA 132ms19408kbC++232.4kb2023-07-07 14:11:102023-07-07 14:11:11

詳細信息

Test #1:

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

input:

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

output:

2
6
5

result:

ok 3 number(s): "2 6 5"

Test #2:

score: 0
Accepted
time: 4ms
memory: 9204kb

input:

9 5
2 10
2 -20
2 20
2 -20
2 20

output:

5
32
5
5
5
5
5
5
5

result:

ok 9 numbers

Test #3:

score: 0
Accepted
time: 3ms
memory: 9252kb

input:

5 10
1 0
3 0
2 0
5 0
4 0
1 0
3 0
2 0
5 0
4 0

output:

0
0
0
0
0

result:

ok 5 number(s): "0 0 0 0 0"

Test #4:

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

input:

1 1
1 0

output:

0

result:

ok 1 number(s): "0"

Test #5:

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

input:

1 1
1 -1000000000

output:

0

result:

ok 1 number(s): "0"

Test #6:

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

input:

1 1
1 1000000000

output:

0

result:

ok 1 number(s): "0"

Test #7:

score: 0
Accepted
time: 122ms
memory: 19344kb

input:

34 99924
5 384094577
32 -796292690
21 -811649302
16 962640530
11 -949299967
26 946724925
32 -871556791
13 -597225272
5 -462265209
17 -360565332
30 973334595
26 65508285
25 -313976558
11 -305308663
4 44272276
3 505903660
19 -828537724
7 -809263187
5 -127755414
19 168244448
13 451711380
17 706137232
2...

output:

1710
2465
2377
1036
2028
1650
2222
2291
2113
579
1536
1820
2479
1610
2210
1395
2213
2289
804
1996
2692
1363
1395
767
1668
1740
1103
1954
1101
2137
1869
1735
2466
2356

result:

ok 34 numbers

Test #8:

score: -100
Wrong Answer
time: 132ms
memory: 19408kb

input:

443 99904
355 776573502
441 -293834208
375 -837011997
40 2774488
397 -249123167
69 -668289981
43 126338528
157 72371393
305 -608040225
253 -492951696
117 -13750067
77 -926024146
115 -887142637
146 585581525
118 -262829358
48 683226063
235 -844096239
69 513944511
223 -498788495
241 -911077572
113 -93...

output:

7435
7272
6432
7641
2790
7721
3771
6005
7048
6948
7038
6544
7023
7418
7051
5335
5811
5634
5960
4388
5978
7737
6746
3312
7530
1984
6800
7404
6118
7493
4906
5022
7280
6567
7198
6030
7810
2660
1697
7036
4367
8059
4639
8228
5447
6877
6983
6887
2793
7200
7466
6033
5823
7694
7465
7800
7458
5839
6406
7132
...

result:

wrong answer 2nd numbers differ - expected: '7270', found: '7272'