QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#459275#8838. Jesse's Jobucup-team3685#TL 128ms18676kbC++202.0kb2024-06-30 00:27:152024-06-30 00:27:15

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3516kb

input:

3
2
2 1
4
2 1 4 3
6
3 5 4 2 6 1

output:

0
1
1 
4
2
2 1 
4
5
6 4 1 3 2 

result:

ok Correct (3 test cases)

Test #2:

score: 0
Accepted
time: 1ms
memory: 3488kb

input:

872
6
1 5 2 6 3 4
6
5 2 1 3 4 6
4
2 1 3 4
6
2 3 1 4 5 6
6
4 5 1 6 2 3
6
6 2 3 1 4 5
5
2 1 3 4 5
6
1 2 6 4 3 5
4
2 1 4 3
6
1 6 4 2 5 3
6
6 1 3 5 4 2
6
2 1 4 5 6 3
6
3 4 1 5 6 2
6
4 1 5 3 2 6
6
5 2 1 6 3 4
6
4 1 6 2 5 3
6
5 1 3 6 2 4
6
6 2 5 4 3 1
6
6 2 5 3 1 4
6
5 2 4 1 3 6
6
6 1 3 2 4 5
6
2 3 4 6 5 ...

output:

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

result:

ok Correct (872 test cases)

Test #3:

score: 0
Accepted
time: 35ms
memory: 3720kb

input:

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

output:

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

result:

ok Correct (46232 test cases)

Test #4:

score: 0
Accepted
time: 128ms
memory: 18676kb

input:

1
999995
992870 210969 579550 405695 249895 436695 476463 929789 907510 311379 340877 491996 59204 996443 681309 483046 760005 905577 711115 275827 697004 450345 678866 276460 310113 542672 27 914370 232581 624905 590395 136666 628293 731656 670994 184745 662928 389422 848680 447853 325275 979617 82...

output:

999995
3
132245 992870 1 

result:

ok Correct (1 test case)

Test #5:

score: 0
Accepted
time: 126ms
memory: 18668kb

input:

1
999999
132956 959208 556000 604257 627699 841942 392337 85216 596714 941258 128586 471931 589450 975529 945897 459533 603544 562877 170464 568730 134581 853340 114919 588755 677661 246220 410344 431559 600933 71503 340747 300767 956226 134024 377489 953726 922690 597383 328440 183077 305496 911409...

output:

999999
3
709905 1 132956 

result:

ok Correct (1 test case)

Test #6:

score: -100
Time Limit Exceeded

input:

1
999995
151304 350332 773183 104266 183633 346263 526539 191085 531746 355173 883744 387959 24944 911448 969746 652626 567671 859523 590384 980797 692606 699234 873314 30142 292030 794805 784083 528201 66334 787834 981995 233166 953602 312617 136612 832397 103749 244552 955161 491539 668517 866412 ...

output:

999993
959610
501170 532452 241324 439211 389861 163369 20113 646960 377692 987728 833522 805404 273152 26629 50730 85527 95433 269321 689617 114396 223789 124452 910987 859762 609069 561781 178268 230307 86827 279680 639418 327611 469517 345947 673118 811614 258361 372961 313804 231179 434303 38087...

result: