QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#685574#9530. A Game On Treeucup-team2454#WA 2ms3912kbC++201.6kb2024-10-28 20:14:082024-10-28 20:14:09

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

443664158
918384806

result:

ok 2 lines

Test #2:

score: -100
Wrong Answer
time: 2ms
memory: 3908kb

input:

1000
7
3 6
4 3
5 3
2 6
1 4
7 1
12
5 7
10 7
2 10
11 2
1 7
8 1
4 2
9 11
6 9
12 11
3 5
6
2 5
1 2
4 5
6 4
3 6
5
2 5
1 5
4 5
3 2
8
1 8
2 8
4 2
6 1
5 6
7 6
3 8
8
3 8
7 3
4 8
6 4
2 7
5 2
1 4
4
3 1
4 3
2 1
6
5 1
6 1
2 5
3 5
4 2
12
8 11
5 11
12 8
3 12
6 12
2 3
4 6
10 11
1 5
9 5
7 5
9
6 1
7 6
4 7
8 7
5 4
9 6
...

output:

106388856
866703434
940568084
549034556
122234025
739770395
27729583
248452021
362081293
608497744
918138356
97051568
177869011
784662242
439720509
219367313
103582766
982399390
556059120
870382877
286456738
268660292
561512535
487568510
129772903
806515477
594510031
779241924
554580750
50774961
663...

result:

wrong answer 1st lines differ - expected: '948445317', found: '106388856'