UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#2056#32. Sortnianheng651246ms1320kbC++1.9kb2018-09-08 11:47:382018-09-08 13:21:21

answer


详细

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

Test #1:

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

input:

5
0 0 0 1 1 

output:

-1 -1

result:

ok Correct.

Test #2:

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

input:

5
716816476 646500411 807499637 544792531 128057616 

output:

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

result:

ok Correct.

Test #3:

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

input:

7
0 0 1 0 0 0 0 

output:

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

result:

ok Correct.

Test #4:

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

input:

7
685386610 762888212 32009424 450956771 498508039 313999604 331164353 

output:

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

result:

ok Correct.

Test #5:

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

input:

10
1 1 0 0 0 0 0 1 1 1 

output:

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

result:

ok Correct.

Test #6:

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

input:

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

output:

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

result:

ok Correct.

Test #7:

score: 5
Accepted
time: 302ms
memory: 540kb

input:

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

output:

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

result:

ok Correct.

Test #8:

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

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:

2 1999
7 1977
9 1975
12 1973
13 1972
16 1971
19 1970
20 1968
25 1967
27 1965
28 1963
32 1955
34 1954...

result:

ok Correct.

Test #9:

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

input:

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

output:

4 1998
6 1997
7 1996
8 1994
10 1992
16 1991
18 1986
22 1985
23 1984
26 1983
29 1981
33 1980
36 1979
...

result:

ok Correct.

Test #10:

score: 5
Accepted
time: 4ms
memory: 612kb

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:

2 2498
3 2497
8 2496
9 2494
13 2489
15 2488
18 2487
20 2483
21 2481
22 2479
23 2477
26 2474
28 2473
...

result:

ok Correct.

Test #11:

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

input:

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

output:

1 2499
2 2497
3 2496
5 2495
6 2492
7 2490
9 2487
19 2486
22 2485
26 2484
27 2483
30 2482
31 2479
32 ...

result:

ok Correct.

Test #12:

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

input:

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

output:

2501 5000
1251 3750
1251 2500
626 1875
626 1250
313 938
314 625
157 470
158 313
79 236
80 157
40 119...

result:

ok Correct.

Test #13:

score: 5
Accepted
time: 11ms
memory: 688kb

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 5000
3 4998
4 4997
5 4996
6 4995
8 4994
12 4993
14 4992
25 4991
26 4990
27 4989
28 4988
30 4987
35...

result:

ok Correct.

Test #14:

score: 0
Wrong Answer
time: 37ms
memory: 844kb

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:

2 9997
3 9995
4 9991
5 9987
6 9985
7 9982
8 9979
11 9976
12 9973
14 9972
15 9971
16 9970
17 9966
20 ...

result:

wrong answer Too much cost.

Test #15:

score: 0
Wrong Answer
time: 66ms
memory: 996kb

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 15000
4 14999
6 14998
7 14997
8 14996
12 14994
14 14992
16 14990
17 14988
18 14987
23 14981
24 149...

result:

wrong answer Too much cost.

Test #16:

score: 0
Wrong Answer
time: 124ms
memory: 1156kb

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:

2 19997
4 19996
7 19994
9 19993
10 19987
11 19984
15 19983
17 19982
19 19979
20 19976
23 19975
25 19...

result:

wrong answer Too much cost.

Test #17:

score: 0
Wrong Answer
time: 188ms
memory: 1312kb

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:

2 25000
5 24999
6 24998
7 24997
8 24996
10 24993
12 24992
13 24990
14 24988
15 24984
16 24983
18 249...

result:

wrong answer Too much cost.

Test #18:

score: 0
Wrong Answer
time: 59ms
memory: 996kb

input:

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

output:

10001 14997
10003 14995
10004 14992
10005 14982
10006 14981
10007 14980
10008 14978
10009 14976
1001...

result:

wrong answer Too much cost.

Test #19:

score: 0
Wrong Answer
time: 182ms
memory: 1164kb

input:

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

output:

3 20000
4 19999
6 19998
7 19996
8 19994
9 19993
12 19987
13 19984
14 19983
18 19982
19 19981
22 1998...

result:

wrong answer Too much cost.

Test #20:

score: 0
Wrong Answer
time: 257ms
memory: 1320kb

input:

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

output:

2 25000
4 24999
5 24998
6 24995
8 24994
9 24993
10 24992
11 24991
12 24989
14 24988
16 24987
21 2498...

result:

wrong answer Too much cost.