QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#405235#5655. Train SplittingGuanYunchangWA 46ms5708kbC++202.8kb2024-05-05 14:41:132024-05-05 14:41:17

詳細信息

Test #1:

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

input:

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

output:

2
2 2 1 2 2 1 2 1 2 
3
1 2 3 

result:

ok OK (2 test cases)

Test #2:

score: -100
Wrong Answer
time: 46ms
memory: 5708kb

input:

100
50 1225
15 33
19 23
14 8
23 26
5 46
22 8
22 13
16 10
20 12
32 16
2 5
36 43
20 33
35 8
4 11
15 43
4 26
33 1
25 36
49 6
11 2
35 11
39 20
24 7
41 2
10 9
40 49
27 17
26 11
49 39
46 27
24 44
26 34
6 27
25 22
9 46
29 43
50 43
2 37
37 10
28 5
14 5
23 28
37 40
10 45
9 26
23 29
35 47
32 21
16 11
9 50
50 ...

output:

49
15 19 8 23 5 8 13 10 12 16 2 36 20 8 4 15 4 1 25 6 2 11 20 7 2 9 40 17 11 39 27 24 26 6 22 9 29 43 2 10 5 5 23 37 10 9 23 35 21 11 9 16 11 25 27 9 7 1 35 33 2 9 5 19 5 9 13 19 39 9 10 4 8 32 6 8 33 17 31 36 45 14 32 38 2 18 8 36 35 15 22 2 44 10 27 3 9 12 18 15 28 16 46 3 8 18 6 37 37 31 10 3 30 ...

result:

wrong answer color 2 is connected (test case 1)