QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#934714#10214. Sort and \&Admire Songke (Jincheng Zhang, Zheng Na, Yanfeng Hu) #AC ✓8ms4004kbC++207.3kb2025-03-15 08:24:112025-03-15 08:24:23

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3584kb

input:

1
4
3 1 4 2

output:

0
3
1 4
4 3
1 2

result:

ok all sorted (1 test case)

Test #2:

score: 0
Accepted
time: 6ms
memory: 3712kb

input:

247
31
13 2 10 25 1 28 26 22 30 16 19 29 15 14 24 17 27 4 21 18 9 20 23 11 31 8 7 12 6 5 3
339
214 112 269 250 173 209 235 27 176 239 139 60 251 65 253 230 291 135 191 298 249 23 151 11 45 88 302 83 183 297 317 100 325 172 38 307 182 98 12 70 207 91 130 193 137 243 32 160 285 185 64 199 202 190 211 ...

output:

1
53
25 2
2 1
1 31
1 4
4 3
30 1
1 2
2 5
29 2
2 1
1 6
27 4
4 8
8 7
21 2
2 9
27 4
4 10
24 4
4 11
28 1
1 12
21 2
2 13
2 16
16 15
2 4
4 17
20 1
1 18
2 4
4 19
22 1
1 20
4 2
2 21
27 4
4 1
1 22
16 1
1 24
30 1
1 2
2 25
8 1
1 26
4 2
2 29
8 1
1 30
1 2
2 4
4 16
0
677
164 8
8 3
287 32
32 5
161 8
8 6
64 8
8 7
24...

result:

ok all sorted (247 test cases)

Test #3:

score: 0
Accepted
time: 6ms
memory: 4000kb

input:

31
2897
687 310 1393 2586 1050 2751 2328 2223 638 2827 2493 1613 1034 1724 1579 2819 1761 2087 1213 2717 1884 2364 2396 2106 1722 8 2491 473 978 1274 403 2325 1711 156 1227 2696 2069 2419 2472 1787 2487 2761 2822 2505 1739 2307 507 2128 1804 1079 199 347 1462 1891 198 583 2201 1399 940 1958 1830 318...

output:

0
5799
1741 16
16 3
2336 2
2 5
2599 8
8 6
538 32
32 7
172 2
2 9
2072 1
1 10
593 4
4 11
1524 1
1 12
605 2
2 13
1036 1
1 14
1680 32
32 15
102 8
8 17
1647 128
128 18
1168 4
4 19
2807 8
8 20
2373 2
2 21
621 128
128 22
1379 8
8 23
469 2
2 24
297 2
2 25
2098 1
1 26
456 4
4 27
233 2
2 28
2263 32
32 29
2676...

result:

ok all sorted (31 test cases)

Test #4:

score: 0
Accepted
time: 8ms
memory: 4004kb

input:

12
7
7 5 3 6 1 4 2
5
5 3 4 1 2
10000
1132 8176 3778 365 3479 4419 5652 7687 7968 2419 81 6716 4933 9926 3015 5642 6300 5227 5671 678 5590 5495 3467 8806 6977 3273 8322 285 2531 4663 4111 8107 7725 9352 1799 4423 958 5421 7445 6745 1769 9250 7262 9443 7285 3548 573 9838 4609 8840 7834 9799 7356 5748 ...

output:

1
8
1 7
2 1
1 2
2 5
4 1
1 6
1 2
2 4
0
4
2 4
4 3
1 2
2 5
0
20018
4299 4
4 3
4320 2
2 5
8627 8
8 6
5760 8
8 7
7803 4
4 9
2261 32
32 10
618 4
4 11
7304 1
1 12
3460 2
2 13
7159 1024
1024 14
7036 128
128 15
3343 32
32 17
3696 1
1 18
4995 4
4 19
2952 1
1 20
1406 128
128 21
8147 8
8 22
3334 8
8 23
5774 1
1...

result:

ok all sorted (12 test cases)

Extra Test:

score: 0
Extra Test Passed