QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#478791#6437. Paimon's TreeFarmer_DWA 201ms20416kbC++172.5kb2024-07-15 11:06:482024-07-15 11:06:49

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
5
1 7 3 5 4
1 3
2 3
3 4
4 5
4 6
1
1000000000
1 2

output:

16
1000000000

result:

ok 2 number(s): "16 1000000000"

Test #2:

score: -100
Wrong Answer
time: 201ms
memory: 20416kb

input:

5000
19
481199252 336470888 634074578 642802746 740396295 773386884 579721198 396628655 503722503 971207868 202647942 2087506 268792718 46761498 443917727 16843338 125908043 691952768 717268783
9 4
4 18
12 9
10 9
4 1
6 12
2 18
9 13
6 14
4 8
2 3
10 17
2 20
19 20
5 1
12 15
15 16
4 7
17 11
4
240982681 ...

output:

5750811120
5
240982681 492166210 739278910 424571558 
4 5
3 4
2 5
3 1
2396412973
4777682809
4140156713
5413596313
1875024569
3690026656
3702623113
3823044738
7303703112
5308851105
2355946110
3090496776
5626636202
4729664767
2617566443
1503816383
4759005973
2944749369
3119189913
3226172147
5757497518...

result:

wrong answer 2nd numbers differ - expected: '1896999359', found: '5'