QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#960050#10214. Sort and \&lp0 on fire (Alireza Kaviani, Parsa Pordeli Behrouz, Amirhossein Farkhondehfar) AC ✓16ms4224kbC++171.2kb2025-04-01 08:48:072025-04-01 08:48:08

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1
4
3 1 4 2

output:

0
3
4 2
4 1
4 3

result:

ok all sorted (1 test case)

Test #2:

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

result:

ok all sorted (247 test cases)

Test #3:

score: 0
Accepted
time: 16ms
memory: 4224kb

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
4715
539 2048
2048 1198
1198 2897
2151 1944
1944 2048
2048 1199
1199 2896
1982 2048
2048 1200
1200 2895
2262 1833
1833 2048
2048 1201
1201 2894
1454 2048
2048 1202
1202 2893
1183 2048
2048 1203
1203 2892
683 2048
2048 1204
1204 2891
2234 1861
1861 2048
2048 1205
1205 2890
1431 2048
2048 1206
1206 ...

result:

ok all sorted (31 test cases)

Test #4:

score: 0
Accepted
time: 15ms
memory: 4008kb

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
10
1 4
4 1
1 7
4 1
1 6
2 4
4 2
2 5
4 2
4 1
0
4
1 4
4 2
2 5
4 3
0
13804
3073 8192
8192 6383
6383 10000
7380 8192
8192 6384
6384 9999
639 8192
8192 6385
6385 9998
5318 8192
8192 6386
6386 9997
7467 8192
8192 6387
6387 9996
5551 8192
8192 6388
6388 9995
5573 8192
8192 6389
6389 9994
8335 8048
8048 81...

result:

ok all sorted (12 test cases)

Extra Test:

score: 0
Extra Test Passed