UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#2041#32. Sortxnzy554566ms1388kbC++584b2018-09-08 11:44:202018-09-08 13:20:40

answer


详细

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

Test #1:

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

input:

5
0 0 0 1 1 

output:

2 4
1 3
1 4
2 3
2 5
3 3
1 5
2 4
1 2
2 3
2 4
3 5
1 3
3 4
1 3
3 5
3 4
3 5
2 4
2 3
4 5
2 5
3 5
4 5
1 1
...

result:

ok Correct.

Test #2:

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

input:

5
716816476 646500411 807499637 544792531 128057616 

output:

2 4
1 3
1 4
2 3
2 5
3 3
1 5
2 4
1 2
2 3
2 4
3 5
1 3
3 4
1 3
3 5
3 4
3 5
2 4
2 3
4 5
2 5
3 5
4 5
1 1
...

result:

ok Correct.

Test #3:

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

input:

7
0 0 1 0 0 0 0 

output:

2 5
3 6
2 4
3 4
2 4
3 6
5 7
1 7
2 4
3 3
1 4
3 6
3 6
6 7
2 6
1 6
4 6
3 4
1 2
3 3
2 5
1 6
4 7
3 7
2 3
...

result:

ok Correct.

Test #4:

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

input:

7
685386610 762888212 32009424 450956771 498508039 313999604 331164353 

output:

2 5
3 6
2 4
3 4
2 4
3 6
5 7
1 7
2 4
3 3
1 4
3 6
3 6
6 7
2 6
1 6
4 6
3 4
1 2
3 3
2 5
1 6
4 7
3 7
2 3
...

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:

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

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:

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

result:

ok Correct.

Test #7:

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

input:

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

output:

887 2384
778 1916
1794 2336
493 2387
422 2650
363 1028
2060 2691
1764 2927
427 541
173 737
369 1212
...

result:

ok Correct.

Test #8:

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

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:

1384 2887
778 916
2336 3794
493 1387
650 1422
2028 2363
60 691
1764 1927
541 3427
1173 3737
1212 336...

result:

ok Correct.

Test #9:

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

input:

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

output:

1384 2887
778 916
2336 3794
493 1387
650 1422
2028 2363
60 691
1764 1927
541 3427
1173 3737
1212 336...

result:

ok Correct.

Test #10:

score: 5
Accepted
time: 13ms
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:

887 4384
1916 2778
2794 3336
387 493
1422 1650
28 2363
60 3691
2764 3927
541 3427
737 4173
212 369
1...

result:

ok Correct.

Test #11:

score: 0
Wrong Answer
time: 23ms
memory: 1208kb

input:

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

output:

887 4384
1916 2778
2794 3336
387 493
1422 1650
28 2363
60 3691
2764 3927
541 3427
737 4173
212 369
1...

result:

wrong answer Too much cost.

Test #12:

score: 0
Wrong Answer
time: 24ms
memory: 1212kb

input:

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

output:

887 4384
1916 2778
2794 3336
387 493
1422 1650
28 2363
60 3691
2764 3927
541 3427
737 4173
212 369
1...

result:

wrong answer Too much cost.

Test #13:

score: 5
Accepted
time: 48ms
memory: 1236kb

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:

887 9384
2778 6916
7794 8336
493 5387
1422 6650
28 2363
60 8691
3927 7764
541 3427
5737 9173
5212 53...

result:

ok Correct.

Test #14:

score: 0
Wrong Answer
time: 184ms
memory: 1276kb

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:

9384 10887
12778 16916
7794 18336
493 5387
1422 16650
2363 10028
60 8691
13927 17764
541 3427
9173 1...

result:

wrong answer Too much cost.

Test #15:

score: 0
Wrong Answer
time: 409ms
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:

887 29384
12778 16916
7794 8336
493 5387
21422 26650
10028 12363
8691 20060
7764 23927
541 3427
9173...

result:

wrong answer Too much cost.

Test #16:

score: 0
Wrong Answer
time: 724ms
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:

9384 10887
12778 36916
27794 38336
493 5387
1422 36650
2363 10028
60 8691
17764 33927
20541 23427
91...

result:

wrong answer Too much cost.

Test #17:

score: 0
Wrong Answer
time: 1139ms
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:

30887 39384
36916 42778
38336 47794
10493 35387
16650 41422
2363 40028
18691 20060
13927 47764
30541...

result:

wrong answer Too much cost.

Test #18:

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

input:

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

output:

887 29384
12778 16916
7794 8336
493 5387
21422 26650
10028 12363
8691 20060
7764 23927
541 3427
9173...

result:

wrong answer Too much cost.

Test #19:

score: 0
Wrong Answer
time: 1331ms
memory: 1352kb

input:

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

output:

9384 10887
12778 36916
27794 38336
493 5387
1422 36650
2363 10028
60 8691
17764 33927
20541 23427
91...

result:

wrong answer Too much cost.

Test #20:

score: 0
Time Limit Exceeded

input:

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

output:

30887 39384
36916 42778
38336 47794
10493 35387
16650 41422
2363 40028
18691 20060
13927 47764
30541...

result: