UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#1817#32. Sortatom652257ms1840kbC++111.2kb2018-09-08 11:02:472018-09-08 12:59:49

answer


详细

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

Test #1:

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

input:

5
0 0 0 1 1 

output:

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

result:

ok Correct.

Test #2:

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

input:

5
716816476 646500411 807499637 544792531 128057616 

output:

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

result:

ok Correct.

Test #3:

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

input:

7
0 0 1 0 0 0 0 

output:

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

result:

ok Correct.

Test #4:

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

input:

7
685386610 762888212 32009424 450956771 498508039 313999604 331164353 

output:

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

result:

ok Correct.

Test #5:

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

input:

10
1 1 0 0 0 0 0 1 1 1 

output:

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

result:

ok Correct.

Test #6:

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

input:

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

output:

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

result:

ok Correct.

Test #7:

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

input:

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

output:

30 1094
383 1525
1636 1950
51 1168
121 1937
807 1535
1938 2942
861 2090
764 1405
2015 2668
479 1725
...

result:

ok Correct.

Test #8:

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

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:

2094 3030
383 2525
1636 2950
1168 3051
1937 3121
3535 3807
942 2938
90 3861
1405 1764
15 1668
479 27...

result:

ok Correct.

Test #9:

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

input:

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

output:

2094 3030
383 2525
1636 2950
1168 3051
1937 3121
3535 3807
942 2938
90 3861
1405 1764
15 1668
479 27...

result:

ok Correct.

Test #10:

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

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:

1094 2030
3525 4383
1636 2950
168 3051
1937 4121
535 3807
942 2938
861 3090
1405 2764
2668 4015
3479...

result:

ok Correct.

Test #11:

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

input:

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

output:

1094 2030
3525 4383
1636 2950
168 3051
1937 4121
535 3807
942 2938
861 3090
1405 2764
2668 4015
3479...

result:

ok Correct.

Test #12:

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

input:

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

output:

1094 2030
3525 4383
1636 2950
168 3051
1937 4121
535 3807
942 2938
861 3090
1405 2764
2668 4015
3479...

result:

ok Correct.

Test #13:

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

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:

6094 7030
4383 8525
1636 2950
3051 5168
1937 9121
3807 5535
942 2938
5861 8090
1405 7764
4015 7668
8...

result:

ok Correct.

Test #14:

score: 0
Wrong Answer
time: 38ms
memory: 1452kb

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:

6094 7030
4383 18525
1636 2950
3051 5168
1937 19121
3807 15535
942 2938
8090 15861
1405 17764
4015 1...

result:

wrong answer Too much cost.

Test #15:

score: 0
Wrong Answer
time: 94ms
memory: 1568kb

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:

16094 27030
24383 28525
1636 22950
3051 25168
1937 9121
3807 25535
20942 22938
8090 15861
1405 27764...

result:

wrong answer Too much cost.

Test #16:

score: 0
Wrong Answer
time: 164ms
memory: 1680kb

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:

6094 7030
24383 38525
21636 22950
3051 25168
1937 19121
3807 35535
2938 20942
15861 28090
1405 37764...

result:

wrong answer Too much cost.

Test #17:

score: 0
Wrong Answer
time: 254ms
memory: 1788kb

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:

26094 37030
18525 34383
1636 22950
3051 5168
1937 39121
13807 15535
10942 32938
5861 8090
31405 3776...

result:

wrong answer Too much cost.

Test #18:

score: 0
Wrong Answer
time: 463ms
memory: 1640kb

input:

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

output:

16094 27030
24383 28525
1636 22950
3051 25168
1937 9121
3807 25535
20942 22938
8090 15861
1405 27764...

result:

wrong answer Too much cost.

Test #19:

score: 0
Wrong Answer
time: 1203ms
memory: 1840kb

input:

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

output:

6094 7030
24383 38525
21636 22950
3051 25168
1937 19121
3807 35535
2938 20942
15861 28090
1405 37764...

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:

26094 37030
18525 34383
1636 22950
3051 5168
1937 39121
13807 15535
10942 32938
5861 8090
31405 3776...

result: