UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#116905#1676. 木头移动Baiyang0728100148ms253564kbC++537b2020-08-10 22:46:422020-08-10 22:46:44

answer


详细

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

Test #1:

score: 10
Accepted
time: 44ms
memory: 253564kb

input:

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

output:





































































































...

result:

ok 10000 lines

Test #2:

score: 10
Accepted
time: 9ms
memory: 1760kb

input:

7359 8362
786 6686
7049 6160
757 1593
5159 2949
4173 3079
1307 7121
7163 1941
5646 845
1303 6743
536...

output:

1 6844 



5 6975
6


5004 3362 7179




14
15

17 4352
18  
6499 392 

74 2228 

23 

25 
26 1252

...

result:

ok 7359 lines

Test #3:

score: 10
Accepted
time: 5ms
memory: 1512kb

input:

3312 3719
2125 2229
1435 2127
673 1459
250 2261
203 32
2008 190
882 3037
3091 2459
379 1633
7 2248
1...

output:

1 1986 3310 31 957


4 2807

6 1003 844 2889 2942  2651 2182 2574 1777
814  
8
2827 452 1509 2342 31...

result:

ok 3312 lines

Test #4:

score: 10
Accepted
time: 16ms
memory: 1716kb

input:

6807 7111
946 3123
2023 3647
5238 6141
4757 3377
5519 3103
2255 6548
2202 1949
6477 4884
3870 2448
5...

output:

6396

2702

5 35 158
6 6330 1588 6680 1672 4029  5327 5183 2892  6525 6134  3439 
1084 
4187 1073


...

result:

ok 6807 lines

Test #5:

score: 10
Accepted
time: 8ms
memory: 1356kb

input:

695 9671
564 502
34 349
17 252
546 281
348 100
95 153
381 324
594 504
375 644
363 540
291 114
161 52...

output:












621 288   337 60 457 10 681   209 13  425 563  427  251  85       585         










...

result:

ok 695 lines

Test #6:

score: 10
Accepted
time: 7ms
memory: 1348kb

input:

531 8590
144 116
65 453
280 409
391 199
341 17
503 466
408 146
456 390
84 498
97 78
52 90
129 73
86 ...

output:








170            


























110   241 292  221 367  416    529               

...

result:

ok 531 lines

Test #7:

score: 10
Accepted
time: 16ms
memory: 1796kb

input:

7875 6318
6726 7459
2306 6982
7697 377
4142 6577
7132 2029
7301 6079
3690 2039
4905 1237
4687 5997
2...

output:


2 7164 1897
3 
4
5 6330 7079
6

2712
9
10

12 3150



16 1332 5938

5892
19

21 6574
22

3123
25 
2...

result:

ok 7875 lines

Test #8:

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

input:

9262 4012
2393 5512
4723 2636
6235 3312
7192 2303
2798 7625
6942 7639
138 4397
4173 3502
1636 698
28...

output:


2
3 2745

5 8862
6 
7
2903
9

11
12 
13 4592
14 5784

16
17
18 6815

20

22
23
24 8807
25 2211 8085...

result:

ok 9262 lines

Test #9:

score: 10
Accepted
time: 10ms
memory: 1672kb

input:

5682 7560
762 381
2992 3275
3080 1632
5552 2423
2068 3035
3811 346
4163 5443
5661 5629
5162 240
4919...

output:



3

1593 

4614   









5484 5211 4226 1495
2186 4569  



3602
1508 4638 2686 465 5549  
24

4...

result:

ok 5682 lines

Test #10:

score: 10
Accepted
time: 13ms
memory: 1820kb

input:

9004 2336
6087 6585
4941 6317
5018 5647
118 5385
1680 2214
8080 4156
2807 2092
432 84
8181 8563
5783...

output:

1

3  4842

5 4769
6
7
8
9 5652
10
11 690
12
13 6442 7715
14
15
16

18 6402 7777
19
20
21

23
24 458...

result:

ok 9004 lines