UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#2622#32. Sortgxwinnt65898ms1384kbC++560b2018-09-09 10:01:522018-09-09 10:01:54

answer


Details

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

Test #1:

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

input:

5
0 0 0 1 1 

output:

-1 -1

result:

ok Correct.

Test #2:

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

input:

5
716816476 646500411 807499637 544792531 128057616 

output:

3 5
1 4
1 2
-1 -1

result:

ok Correct.

Test #3:

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

input:

7
0 0 1 0 0 0 0 

output:

3 5
5 7
-1 -1

result:

ok Correct.

Test #4:

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

input:

7
685386610 762888212 32009424 450956771 498508039 313999604 331164353 

output:

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

result:

ok Correct.

Test #5:

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

input:

10
1 1 0 0 0 0 0 1 1 1 

output:

1 7
-1 -1

result:

ok Correct.

Test #6:

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

input:

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

output:

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

result:

ok Correct.

Test #7:

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

input:

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

output:

1 2999
2 2993
4 2984
5 2977
6 2967
7 2964
8 2957
9 2943
10 2936
11 2935
12 2933
13 2931
14 2928
15 2...

result:

ok Correct.

Test #8:

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

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 4000
7 3999
9 3998
10 3997
23 3993
24 3992
37 3987
40 3985
46 3983
51 3982
53 3980
54 3979
58 3976...

result:

ok Correct.

Test #9:

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

input:

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

output:

4 4000
5 3999
7 3998
8 3997
28 3995
36 3994
41 3993
48 3992
49 3991
50 3990
51 3989
54 3988
57 3986
...

result:

ok Correct.

Test #10:

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

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 5000
3 4999
14 4996
16 4995
19 4994
29 4990
30 4989
32 4987
35 4984
37 4983
43 4980
44 4979
47 497...

result:

ok Correct.

Test #11:

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

input:

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

output:

2 4998
5 4997
8 4995
9 4993
11 4992
13 4991
16 4990
18 4989
21 4988
22 4986
33 4985
41 4983
44 4982
...

result:

ok Correct.

Test #12:

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

input:

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

output:

2500 5000
1 2500
2 2500
3 2501
4 2501
5 2502
6 2502
7 2503
8 2503
9 2504
10 2504
11 2505
12 2505
13 ...

result:

ok Correct.

Test #13:

score: 5
Accepted
time: 7ms
memory: 1228kb

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 9998
3 9994
4 9992
5 9991
9 9983
10 9982
21 9960
25 9952
26 9951
29 9944
30 9943
32 9941
34 9939
3...

result:

ok Correct.

Test #14:

score: 0
Wrong Answer
time: 26ms
memory: 1268kb

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 20000
10 19998
12 19996
19 19993
20 19992
24 19989
25 19988
28 19985
31 19983
32 19982
34 19980
41...

result:

wrong answer Too much cost.

Test #15:

score: 0
Wrong Answer
time: 54ms
memory: 1308kb

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 29988
6 29984
8 29982
9 29980
10 29979
11 29978
16 29971
17 29970
19 29967
21 2996...

result:

wrong answer Too much cost.

Test #16:

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

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 40000
3 39999
6 39998
8 39997
10 39995
15 39993
28 39988
29 39987
32 39984
35 39982
43 39978
51 39...

result:

wrong answer Too much cost.

Test #17:

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

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 49998
3 49997
4 49996
5 49995
6 49994
17 49961
18 49958
19 49956
20 49955
27 49946
29 49943
30 499...

result:

wrong answer Too much cost.

Test #18:

score: 0
Wrong Answer
time: 58ms
memory: 1304kb

input:

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

output:

10001 29993
10002 29991
10005 29987
10008 29984
10009 29981
10010 29977
10011 29976
10013 29975
1001...

result:

wrong answer Too much cost.

Test #19:

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

input:

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

output:

3 40000
4 39998
5 39997
6 39995
7 39992
10 39989
11 39984
12 39981
13 39979
14 39978
15 39973
16 399...

result:

wrong answer Too much cost.

Test #20:

score: 0
Wrong Answer
time: 304ms
memory: 1380kb

input:

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

output:

1 50000
2 49998
3 49993
6 49987
7 49977
9 49976
10 49974
12 49973
14 49969
15 49968
17 49967
19 4996...

result:

wrong answer Too much cost.