QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#23436#3208. Call It What You WantyukorniAC ✓755ms5564kbC++205.6kb2022-03-16 12:06:592022-04-30 03:06:46

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 755ms
memory: 5564kb

input:

353
5 5
1 2
2 3
3 4
4 5
5 1
7 7
1 2
2 3
3 4
4 5
5 1
5 6
4 7
7 10
1 2
2 3
3 4
4 5
1 5
2 5
3 5
1 6
5 6
4 7
10 11
1 2
1 4
1 6
1 7
1 9
2 3
2 4
4 5
4 8
4 10
6 7
10 11
1 2
1 5
1 8
2 3
2 7
3 4
4 6
6 8
6 10
7 9
8 10
10 14
1 2
1 3
1 7
1 10
2 5
3 4
3 5
3 7
3 10
4 8
5 6
6 8
7 8
7 9
10 11
1 2
1 3
1 4
1 5
2 3
3 ...

output:

4
6
6
5
9
9
6
7
8
7
6
8
8
9
9
8
6
9
9
5
7
8
6
9
9
6
8
7
5
6
7
9
6
8
6
8
7
7
9
5
8
9
8
8
9
6
8
6
7
8
6
7
8
8
9
6
8
7
9
7
8
8
6
8
7
7
7
8
8
9
8
8
8
9
9
8
8
8
8
6
5
8
6
7
9
8
7
7
9
9
5
9
8
7
8
8
9
6
9
7
8
5
8
7
10
12
6
15
11
12
13
16
9
16
11
8
13
16
10
14
12
10
9
11
15
10
10
8
12
14
14
14
15
14
8
15
11...

result:

ok 353 lines