QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#934764#10214. Sort and \&elastic enormous eggs (Nicholas Ko, Darren Lu, Chun Wong) #AC ✓19ms4356kbC++202.9kb2025-03-15 09:08:182025-03-15 09:08:18

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
2 4
4 1
4 3

result:

ok all sorted (1 test case)

Test #2:

score: 0
Accepted
time: 19ms
memory: 3840kb

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
73
25 6
6 16
16 1
1 31
6 16
16 14
14 17
20 11
11 16
16 13
13 18
20 11
11 16
16 12
12 19
22 9
9 16
16 11
11 20
12 16
16 10
10 21
8 16
16 9
9 22
15 16
16 7
7 24
4 16
16 6
6 25
4 16
16 5
5 26
14 16
16 4
4 27
6 16
16 3
3 28
15 16
16 2
2 29
9 16
16 1
1 30
14 16
16 1
9 16
16 2
14 16
16 3
13 16
16 4
9 16...

result:

ok all sorted (247 test cases)

Test #3:

score: 0
Accepted
time: 18ms
memory: 4332kb

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
6763
929 2048
2048 2046
2046 2049
1733 2048
2048 2045
2045 2050
1814 2048
2048 2044
2044 2051
586 2048
2048 2043
2043 2052
2191 1904
1904 2048
2048 2042
2042 2053
2069 2026
2026 2048
2048 2041
2041 2054
2810 1285
1285 2048
2048 2040
2040 2055
2000 2048
2048 2039
2039 2056
1828 2048
2048 2038
2038 ...

result:

ok all sorted (31 test cases)

Test #4:

score: 0
Accepted
time: 19ms
memory: 4356kb

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
6
1 7
2 5
4 1
1 6
2 4
4 1
0
4
1 4
4 2
2 5
4 3
0
21946
6732 8192
8192 8190
8190 8193
7912 8192
8192 8189
8189 8194
4080 8192
8192 8188
8188 8195
4923 8192
8192 8187
8187 8196
6719 8192
8192 8186
8186 8197
1226 8192
8192 8185
8185 8198
5932 8192
8192 8184
8184 8199
362 8192
8192 8183
8183 8200
1617 ...

result:

ok all sorted (12 test cases)

Extra Test:

score: 0
Extra Test Passed