QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#559237#2210. Hamilton PathZ_301WA 208ms79568kbC++177.8kb2024-09-11 20:58:542024-09-11 20:58:55

详细

Test #1:

score: 100
Accepted
time: 10ms
memory: 77368kb

input:

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

output:

2
13425 34251 

result:

ok 3 number(s): "2 13425 34251"

Test #2:

score: 0
Accepted
time: 208ms
memory: 77268kb

input:

67777
9 32
6 3
5 2
7 3
7 8
5 2
5 2
7 8
8 2
7 3
8 9
4 3
2 3
4 3
3 1
1 3
8 3
9 8
3 2
5 6
4 5
9 4
6 7
2 8
5 4
5 3
7 8
5 1
6 9
8 3
6 9
7 8
4 1
5 12
3 5
2 3
4 5
2 5
5 3
1 4
3 2
2 4
1 4
4 1
2 5
4 5
2 10
1 2
1 2
1 2
2 1
1 2
1 2
1 2
1 2
1 2
1 2
10 28
1 9
5 9
6 1
10 5
8 7
1 4
7 10
7 5
6 8
9 4
2 9
6 4
2 6
1 1...

output:

1
132894567
2
14532 53241 
2
12 21 
1
594731198
1
74123568
2
12 21 
1
6241735
1
1
1
513264
1
7241356
2
213 312 
1
247381965
1
123
1
31524
2
12 21 
1
1
1
12
2
132 231 
1
41268753
1
245378846
1
526134
1
413652
1
12345
1
31542
2
12 21 
1
5624713
1
4675213
3
202947333 852029431 520294680 
1
312
1
427915...

result:

ok 148279 numbers

Test #3:

score: -100
Wrong Answer
time: 177ms
memory: 79568kb

input:

90961
2 4
2 1
2 1
2 1
2 1
4 8
4 3
2 1
4 3
1 2
4 1
1 4
1 2
4 2
5 22
1 3
5 2
3 1
3 4
3 4
2 3
2 4
3 2
5 4
5 3
4 3
2 1
1 4
1 2
1 3
2 1
4 5
4 3
1 5
5 3
2 3
4 5
8 22
1 4
3 8
8 6
5 7
5 6
1 3
1 2
8 5
8 3
5 2
6 5
2 5
6 1
6 7
5 4
2 4
4 1
6 3
4 3
8 1
6 5
7 6
10 7
10 8
9 3
10 5
4 6
10 7
10 3
3 1
8 28
7 8
8 5
6 ...

output:

1
21
1
2143
0
1
38576124
0
1
57861342
1
1
2
12 21 
0
0
0
0
2
12 21 
1
1
0
0
1
1
0
0
0
0
0
1
1
0
0
1
213
0
0
0
1
1
0
0
0
2
123 231 
2
12 21 
0
0
1
2413
0
0
0
1
1
1
1
2
12 21 
0
0
0
0
1
213
0
0
1
132
0
2
12 21 
0
0
1
1
1
1
0
0
0
0
1
21
0
2
12 21 
1
34152
0
0
1
1
0
0
1
1
0
1
1
0
0
0
0
0
1
1
0
0
0
0
2
1...

result:

wrong answer 6th numbers differ - expected: '0', found: '1'