QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#460328#6865. foreverlasting and fried-chickenMaMengQiAC ✓159ms7476kbC++231.2kb2024-07-01 13:57:352024-07-01 13:57:35

详细

Test #1:

score: 100
Accepted
time: 159ms
memory: 7476kb

input:

9
8 10
1 2
1 3
1 4
1 5
1 6
1 7
8 4
8 5
8 6
8 7
10 12
1 2
1 3
1 4
1 5
1 6
1 7
8 4
8 5
8 6
8 7
8 9
8 10
11 13
1 2
1 3
1 4
1 5
1 6
1 7
8 4
8 5
8 6
8 7
8 9
8 10
1 11
11 14
1 2
1 3
1 4
1 5
1 6
1 7
8 4
8 5
8 6
8 7
8 9
8 10
1 11
1 8
10 45
5 10
2 9
5 8
3 10
2 10
4 9
4 3
4 2
5 6
7 1
10 6
10 7
6 1
8 3
5 1
7 5...

output:

1
2
4
4
37800
0
278229818
23929419
3268272

result:

ok 9 lines