UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#43680#121. 纲举目张gdlsh100400ms5424kbC++1.5kb2018-11-09 16:58:332018-11-09 18:09:03

answer


Details

小提示:点击横条可展开更详细的信息

Test #1:

score: 10
Accepted
time: 58ms
memory: 5384kb

input:

94384
2 1
3 2
4 2
5 4
6 1
7 4
8 5
9 3
10 1
11 2
12 2
13 6
14 13
15 6
16 14
17 10
18 8
19 10
20 17
21...

output:

5838
1466
7254
1224
1489
813
188
8518
1505
16708
244
8463
4003
1589
4696
1581
1255
2947
1250
10918
1...

result:

ok 100000 lines

Test #2:

score: 10
Accepted
time: 27ms
memory: 936kb

input:

970
2 1
3 1
4 2
5 1
6 1
7 3
8 3
9 5
10 3
11 6
12 5
13 6
14 5
15 12
16 12
17 11
18 17
19 12
20 18
21 ...

output:

27
66
134
124
70
85
60
41
1
90
101
52
11
18
110
45
48
39
91
52
58
65
57
87
85
66
41
35
59
42
88
4
27...

result:

ok 100000 lines

Test #3:

score: 10
Accepted
time: 42ms
memory: 5300kb

input:

92685
2 1
3 2
4 2
5 1
6 1
7 2
8 7
9 8
10 5
11 4
12 9
13 3
14 11
15 14
16 14
17 13
18 8
19 15
20 18
2...

output:

3226
3861
5539
5990
13764
4194
6932
6272
11787
8832
1124
2870
9084
9670
5952
6519
1791
2741
1069
426...

result:

ok 100000 lines

Test #4:

score: 10
Accepted
time: 20ms
memory: 936kb

input:

943
2 1
3 2
4 2
5 4
6 2
7 6
8 6
9 4
10 3
11 3
12 10
13 12
14 9
15 14
16 6
17 16
18 15
19 10
20 14
21...

output:

23
97
127
59
116
139
180
5
142
157
145
35
181
110
117
41
127
142
182
149
161
69
87
66
45
191
25
6
43...

result:

ok 100000 lines

Test #5:

score: 10
Accepted
time: 57ms
memory: 5344kb

input:

93567
2 1
3 1
4 1
5 1
6 2
7 6
8 7
9 1
10 8
11 3
12 8
13 12
14 9
15 11
16 13
17 13
18 17
19 16
20 16
...

output:

3952
1837
559
4924
745
12589
12068
1239
16565
5470
10011
6701
1114
518
14149
1115
3675
3066
12600
10...

result:

ok 100000 lines

Test #6:

score: 10
Accepted
time: 30ms
memory: 936kb

input:

928
2 1
3 1
4 3
5 1
6 1
7 4
8 5
9 2
10 2
11 10
12 11
13 12
14 13
15 6
16 11
17 8
18 14
19 11
20 14
2...

output:

75
62
85
103
87
95
63
123
56
29
91
153
152
80
66
58
45
25
86
117
52
105
38
109
88
21
115
78
41
48
10...

result:

ok 100000 lines

Test #7:

score: 10
Accepted
time: 60ms
memory: 5424kb

input:

94988
2 1
3 1
4 1
5 1
6 3
7 6
8 7
9 6
10 9
11 6
12 10
13 11
14 7
15 6
16 9
17 11
18 13
19 10
20 13
2...

output:

4372
652
10903
12363
14100
1126
743
1966
10664
6675
10015
989
17154
1301
9319
2379
10823
8376
4235
1...

result:

ok 100000 lines

Test #8:

score: 10
Accepted
time: 33ms
memory: 936kb

input:

999
2 1
3 1
4 2
5 3
6 2
7 3
8 6
9 6
10 9
11 7
12 10
13 4
14 13
15 9
16 13
17 10
18 12
19 14
20 17
21...

output:

191
38
150
39
52
135
23
78
95
69
124
104
92
33
169
26
28
27
115
129
8
91
189
36
114
27
129
22
121
38...

result:

ok 100000 lines

Test #9:

score: 10
Accepted
time: 50ms
memory: 5416kb

input:

95197
2 1
3 1
4 3
5 3
6 2
7 1
8 5
9 2
10 7
11 10
12 7
13 3
14 4
15 10
16 9
17 9
18 15
19 16
20 11
21...

output:

13975
7894
5052
678
16125
6856
13108
3604
1924
5865
9476
8163
8323
4894
8357
15800
10565
9829
1891
9...

result:

ok 100000 lines

Test #10:

score: 10
Accepted
time: 23ms
memory: 932kb

input:

979
2 1
3 2
4 3
5 4
6 5
7 6
8 7
9 6
10 5
11 1
12 6
13 12
14 13
15 7
16 8
17 16
18 17
19 17
20 14
21 ...

output:

84
74
97
147
82
122
55
144
86
62
150
162
31
16
38
163
119
87
51
50
8
7
33
34
44
27
45
27
67
68
57
98...

result:

ok 100000 lines