QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#406196#6437. Paimon's TreeDitaMirikaWA 149ms20156kbC++202.7kb2024-05-06 22:09:572024-05-06 22:09:58

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 149ms
memory: 20156kb

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:

7858522407
1896999359
4206332487
3517240289
8356960206
1203862971
2844573004
5289070469
3109708854
9330734512
7498220405
2355946110
3717380755
8443560429
5848651983
2020566407
572868833
8517525098
2944749369
2532316875
3083947956
10196604440
1344240979
5485156888
1197051728
396588615
251138097
22198...

result:

wrong answer 1st numbers differ - expected: '5750811120', found: '7858522407'