QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#416653#8049. Equal Sumsegypt_ioi2024_01ML 1ms3764kbC++231.6kb2024-05-22 01:32:042024-05-22 01:32:05

詳細信息

Test #1:

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

input:

2 3
1 2
2 3
1 4
2 2
1 3

output:

2 0 0 
3 4 4 

result:

ok 6 numbers

Test #2:

score: -100
Memory Limit Exceeded

input:

500 500
19 458
1 480
7 485
50 461
12 476
15 461
48 466
40 453
46 467
9 458
27 478
26 472
46 459
29 490
6 500
17 487
48 484
28 472
28 459
25 480
4 491
29 481
36 460
2 491
44 499
22 473
20 458
4 483
27 471
2 496
11 461
43 450
2 478
37 466
15 459
42 482
7 451
19 455
2 453
47 475
48 450
1 474
46 471
9 4...

output:

411 79401 9145270 673005095 176878771 861176288 471544780 928285012 700034822 316313536 208094944 341557188 98079408 618648192 122487612 997182767 672811374 228502400 177100 21 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: