QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#503935#5345. VivoParcxiaowuc1AC ✓8ms3620kbC++173.9kb2024-08-04 02:50:092024-08-04 02:50:09

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

8
1-2
3-1
4-5
4-8
1-7
1-4
7-1
2-4
1-8
6-7
2-3
1-5
1-6
7-6
7-8
2-5
7-1
3-4
5-6
7-8

output:

1 1
2 2
3 3
4 4
5 3
6 2
7 3
8 2

result:

ok good solution

Test #2:

score: 0
Accepted
time: 0ms
memory: 3620kb

input:

25
1-3
1-6
1-7
1-8
1-10
1-11
1-12
1-15
1-17
1-19
1-23
1-25
2-3
2-6
2-7
2-8
2-10
2-11
2-15
2-17
2-19
2-20
2-25
3-4
3-5
3-6
3-8
3-9
3-11
3-15
3-18
3-19
3-20
3-21
3-22
3-23
3-24
4-6
4-7
4-8
4-10
4-11
4-12
4-15
4-19
4-20
4-24
4-25
5-6
5-7
5-8
5-10
5-11
5-12
5-15
5-17
5-19
5-20
5-23
5-24
5-25
6-7
6-8
6-9...

output:

1 1
2 1
3 2
4 1
5 1
6 3
7 2
8 4
9 1
10 2
11 3
12 2
13 1
14 1
15 3
16 1
17 2
18 1
19 4
20 4
21 1
22 1
23 4
24 3
25 2

result:

ok good solution

Test #3:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

50
1-2
1-9
1-10
1-12
1-21
1-22
1-37
37-1
1-40
1-42
1-46
2-3
2-9
2-10
2-11
2-14
2-22
2-26
2-30
2-33
33-2
2-34
2-36
2-38
2-39
2-40
2-43
2-47
3-7
3-8
3-11
11-3
3-12
3-16
3-20
3-21
3-26
3-27
3-28
3-29
3-32
3-33
3-35
3-39
39-3
3-40
3-46
3-47
3-49
4-7
4-8
4-9
4-10
4-11
4-19
4-20
20-4
4-21
4-26
4-27
4-30
3...

output:

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

result:

ok good solution

Test #4:

score: 0
Accepted
time: 1ms
memory: 3600kb

input:

100
1-2
1-4
1-5
1-6
1-7
1-8
1-9
1-10
1-11
1-12
1-14
14-1
1-15
1-16
1-17
1-18
1-20
1-21
1-22
1-24
1-26
1-27
1-28
1-29
1-31
1-32
1-33
33-1
1-35
1-37
1-38
1-40
1-44
1-45
1-46
1-47
1-48
1-51
1-52
1-53
1-54
1-55
1-56
1-57
57-1
1-58
1-59
1-60
1-61
61-1
1-63
1-65
65-1
1-66
1-67
1-68
1-69
1-70
1-72
1-73
1-7...

output:

1 1
2 2
3 1
4 3
5 2
6 4
7 4
8 4
9 4
10 2
11 3
12 3
13 1
14 3
15 3
16 4
17 3
18 4
19 1
20 3
21 4
22 2
23 1
24 3
25 1
26 2
27 4
28 2
29 3
30 1
31 4
32 4
33 2
34 1
35 2
36 1
37 3
38 3
39 1
40 4
41 1
42 1
43 1
44 3
45 2
46 3
47 3
48 3
49 1
50 1
51 3
52 3
53 4
54 2
55 2
56 4
57 3
58 4
59 3
60 3
61 3
62 1...

result:

ok good solution

Test #5:

score: 0
Accepted
time: 8ms
memory: 3596kb

input:

100
1-7
1-10
1-18
1-22
1-27
1-57
1-60
1-65
1-71
1-78
1-80
1-82
1-85
1-86
86-1
1-95
1-96
2-3
2-5
2-10
2-13
2-16
16-2
2-25
2-30
2-31
2-35
2-42
42-2
2-67
2-71
2-72
2-73
2-80
2-81
2-85
2-92
2-94
3-4
3-5
3-20
20-3
3-21
3-28
3-29
29-3
3-34
3-43
3-51
3-58
58-3
3-59
3-61
3-63
63-3
3-66
3-69
69-3
3-75
3-79
3...

output:

1 1
2 2
3 3
4 1
5 1
6 1
7 2
8 3
9 2
10 3
11 1
12 1
13 3
14 3
15 2
16 3
17 2
18 4
19 3
20 4
21 1
22 4
23 2
24 1
25 1
26 2
27 3
28 4
29 4
30 4
31 1
32 4
33 1
34 4
35 3
36 4
37 4
38 1
39 3
40 3
41 1
42 4
43 2
44 3
45 4
46 2
47 2
48 3
49 1
50 2
51 1
52 1
53 2
54 3
55 4
56 3
57 2
58 2
59 4
60 4
61 2
62 3...

result:

ok good solution