UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#47473#32. Sortshivering601791ms1388kbC++447b2019-02-21 18:33:392019-02-21 18:33:39

answer


详细

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

Test #1:

score: 5
Accepted
time: 0ms
memory: 1196kb

input:

5
0 0 0 1 1 

output:

1 3
2 2
3 3
4 5
-1 -1

result:

ok Correct.

Test #2:

score: 5
Accepted
time: 0ms
memory: 1196kb

input:

5
716816476 646500411 807499637 544792531 128057616 

output:

1 5
3 4
1 1
2 2
4 5
-1 -1

result:

ok Correct.

Test #3:

score: 5
Accepted
time: 0ms
memory: 1200kb

input:

7
0 0 1 0 0 0 0 

output:

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

result:

ok Correct.

Test #4:

score: 5
Accepted
time: 0ms
memory: 1196kb

input:

7
685386610 762888212 32009424 450956771 498508039 313999604 331164353 

output:

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

result:

ok Correct.

Test #5:

score: 5
Accepted
time: 0ms
memory: 1200kb

input:

10
1 1 0 0 0 0 0 1 1 1 

output:

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

result:

ok Correct.

Test #6:

score: 5
Accepted
time: 0ms
memory: 1192kb

input:

10
552474873 603523889 451688250 856980678 746716186 316583031 509750159 895158422 895128023 2769912...

output:

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

result:

ok Correct.

Test #7:

score: 5
Accepted
time: 2ms
memory: 1204kb

input:

3000
774135042 955379290 425485912 951649655 435211761 517813461 22865164 126834432 859390051 751505...

output:

1 2999
2 2997
3 2996
8 2995
12 2994
15 2993
16 2991
27 2988
31 2986
36 2985
41 2982
42 2980
45 2979
...

result:

ok Correct.

Test #8:

score: 5
Accepted
time: 5ms
memory: 1212kb

input:

4000
0 1 0 0 1 0 0 0 0 0 0 0 1 0 1 1 0 0 1 0 0 0 1 0 0 1 1 0 1 0 0 0 1 1 0 0 0 0 0 1 1 0 1 1 0 0 1 1...

output:

1 4000
2 3998
3 3997
4 3995
5 3994
6 3993
7 3992
8 3991
9 3987
10 3986
11 3981
12 3980
13 3976
14 39...

result:

ok Correct.

Test #9:

score: 5
Accepted
time: 2ms
memory: 1212kb

input:

4000
253876655 192406499 33773493 714588720 62247300 512617285 830025704 158991275 146203174 6211898...

output:

1 4000
2 3999
4 3998
5 3997
6 3991
8 3989
10 3988
11 3986
12 3984
13 3977
16 3971
17 3970
19 3969
22...

result:

ok Correct.

Test #10:

score: 5
Accepted
time: 6ms
memory: 1220kb

input:

5000
0 1 0 0 0 0 0 1 1 0 0 0 0 1 0 0 0 1 1 1 1 0 1 1 0 1 1 1 0 0 1 1 0 0 1 0 0 0 1 1 0 1 1 1 1 0 1 1...

output:

1 5000
2 4998
3 4995
4 4994
5 4992
6 4991
7 4990
8 4988
9 4985
10 4984
11 4983
12 4981
13 4979
14 49...

result:

ok Correct.

Test #11:

score: 5
Accepted
time: 3ms
memory: 1212kb

input:

5000
576963277 817862335 430151834 505200145 307373684 896252967 779450344 424741325 188693368 71249...

output:

1 4998
4 4996
7 4994
8 4992
10 4991
12 4990
15 4989
17 4988
20 4987
21 4985
32 4984
40 4982
43 4981
...

result:

ok Correct.

Test #12:

score: 5
Accepted
time: 12ms
memory: 1216kb

input:

5000
296887 701139 1259018 1624742 1747738 2354948 2616510 2777173 3193517 3454408 3801911 4078104 4...

output:

1 5000
2 5000
3 5000
4 5000
5 5000
6 5000
7 5000
8 5000
9 5000
10 5000
11 5000
12 5000
13 5000
14 50...

result:

ok Correct.

Test #13:

score: 0
Wrong Answer
time: 28ms
memory: 1240kb

input:

10000
1 1 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1 1 1 0 1 0 1 1 0 1 1 0 1 0 0 0 1 0 1 1 ...

output:

1 10000
2 9999
4 9998
6 9997
7 9996
9 9995
13 9994
14 9993
25 9992
26 9991
27 9990
31 9989
33 9988
3...

result:

wrong answer Too much cost.

Test #14:

score: 0
Wrong Answer
time: 95ms
memory: 1280kb

input:

20000
0 1 1 0 1 1 1 1 0 1 1 1 0 1 1 1 0 1 0 1 0 1 1 1 0 0 0 0 0 1 0 1 1 1 1 0 0 0 0 1 1 1 0 1 1 0 0 ...

output:

1 20000
2 19997
3 19996
4 19992
5 19990
6 19987
7 19986
8 19983
9 19981
10 19980
11 19979
12 19978
1...

result:

wrong answer Too much cost.

Test #15:

score: 0
Wrong Answer
time: 198ms
memory: 1316kb

input:

30000
1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 0 0 0 1 0 0 1 1 1 0 0 1 1 0 1 1 0 1 1 0 1 0 1 1 0 1 0 1 0 1 1 1 ...

output:

1 30000
2 29999
4 29998
5 29997
6 29996
7 29995
10 29994
12 29993
14 29992
15 29991
20 29990
23 2998...

result:

wrong answer Too much cost.

Test #16:

score: 0
Wrong Answer
time: 329ms
memory: 1356kb

input:

40000
0 1 0 0 0 1 0 1 1 1 0 0 0 0 1 0 0 1 1 1 0 0 0 1 0 1 1 1 1 0 1 1 0 0 0 1 0 1 1 0 0 0 1 0 0 1 1 ...

output:

1 40000
2 39998
3 39997
4 39996
5 39993
6 39992
7 39991
8 39988
9 39981
10 39980
11 39977
12 39975
1...

result:

wrong answer Too much cost.

Test #17:

score: 0
Wrong Answer
time: 510ms
memory: 1388kb

input:

50000
0 1 0 1 0 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 0 1 1 1 1 1 1 0 1 0 0 1 1 0 1 1 0 0 1 1 0 1 0 0 1 0 ...

output:

1 49999
2 49997
3 49995
4 49994
5 49993
6 49990
7 49989
8 49986
9 49985
10 49981
11 49980
12 49977
1...

result:

wrong answer Too much cost.

Test #18:

score: 0
Wrong Answer
time: 90ms
memory: 1316kb

input:

30000
23333 23333 23333 23333 23333 23333 23333 23333 23333 23333 23333 23333 23333 23333 23333 2333...

output:

1 10000
2 9999
3 9998
4 9997
5 9996
6 9995
7 9994
8 9993
9 9992
10 9991
11 9990
12 9989
13 9988
14 9...

result:

wrong answer Too much cost.

Test #19:

score: 0
Wrong Answer
time: 205ms
memory: 1348kb

input:

40000
45713484 162270600 502896796 450460958 129500884 513441781 557737624 340152311 679444775 35445...

output:

1 39971
2 39944
3 39939
4 39918
5 39861
6 39847
7 39816
8 39803
9 39762
10 39749
11 39748
12 39736
1...

result:

wrong answer Too much cost.

Test #20:

score: 0
Wrong Answer
time: 306ms
memory: 1384kb

input:

50000
455891075 705915927 189674482 578895411 789714247 658466934 483470291 469989305 544838975 2828...

output:

1 50000
2 49998
3 49997
4 49991
5 49990
6 49989
7 49988
10 49987
12 49983
13 49982
15 49977
17 49976...

result:

wrong answer Too much cost.