QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#233185#6307. Chase Game 2ucup-team1785#WA 4ms11536kbC++203.7kb2023-10-31 14:49:152023-10-31 14:49:16

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 11536kb

input:

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

output:

-1
1
-1
2

result:

ok 4 number(s): "-1 1 -1 2"

Test #2:

score: -100
Wrong Answer
time: 4ms
memory: 10824kb

input:

10000
4
1 2
1 3
3 4
4
1 2
1 3
1 4
4
1 2
2 3
1 4
5
1 2
2 3
1 4
4 5
5
1 2
2 3
3 4
4 5
4
1 2
2 3
2 4
5
1 2
1 3
2 4
2 5
4
1 2
2 3
1 4
5
1 2
1 3
2 4
1 5
5
1 2
2 3
3 4
2 5
5
1 2
1 3
2 4
2 5
4
1 2
1 3
3 4
5
1 2
1 3
3 4
1 5
4
1 2
1 3
1 4
5
1 2
1 3
3 4
3 5
5
1 2
2 3
3 4
3 5
4
1 2
1 3
2 4
5
1 2
2 3
2 4
3 5
5
...

output:

1
-1
1
1
1
-1
2
1
-1
-1
2
1
-1
-1
2
2
1
-1
-1
1
1
1
-1
-1
-1
2
1
-1
1
1
2
1
1
-1
1
-1
1
1
1
-1
1
1
2
-1
-1
1
1
1
-1
1
-1
1
1
-1
1
2
1
1
-1
-1
-1
-1
2
2
2
1
1
1
-1
2
-1
-1
1
-1
-1
1
1
-1
2
-1
-1
1
-1
-1
-1
1
1
1
1
1
1
1
1
1
2
-1
1
1
-1
-1
-1
1
1
1
-1
-1
-1
1
-1
-1
2
-1
-1
1
2
-1
1
1
1
1
-1
1
1
1
1
-1...

result:

wrong answer 9th numbers differ - expected: '2', found: '-1'