QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#935289#10214. Sort and \&Crazy Pie Maker (Bo Yang, Yuzhe Duan, Jingqi Li) #AC ✓12ms7932kbC++142.5kb2025-03-15 14:00:252025-03-15 14:00:31

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1
4
3 1 4 2

output:

0
3
1 2
2 4
4 3

result:

ok all sorted (1 test case)

Test #2:

score: 0
Accepted
time: 9ms
memory: 7560kb

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

result:

ok all sorted (247 test cases)

Test #3:

score: 0
Accepted
time: 11ms
memory: 7796kb

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
7671
1741 2
2 4
4 3
2336 1
1 2
2 5
2599 8
8 1
1 6
538 1
1 8
8 7
172 1
1 2
2 9
2072 1
1 10
593 2
2 4
4 11
1524 1
1 12
605 2
2 13
1036 1
1 14
1680 1
1 16
16 15
102 1
1 2
2 17
1647 16
16 1
1 18
1168 1
1 4
4 19
2807 8
8 1
1 20
2373 2
2 21
621 2
2 1
1 22
1379 4
4 8
8 23
469 2
2 1
1 24
297 2
2 25
2098 1...

result:

ok all sorted (31 test cases)

Test #4:

score: 0
Accepted
time: 12ms
memory: 7932kb

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
2 1
2 1
1 7
2 1
1 2
2 5
4 1
1 6
4 2
1 4
0
6
2 1
1 4
4 3
2 1
1 2
2 5
0
26616
4299 4
4 3
4320 1
1 2
2 5
8627 4
4 1
1 6
5760 1
1 8
8 7
7803 4
4 2
2 9
2261 2
2 1
1 10
618 1
1 4
4 11
7304 1
1 12
3460 1
1 2
2 13
7159 8
8 1
1 14
7036 1
1 16
16 15
3343 16
16 2
2 17
3696 1
1 18
4995 4
4 19
2952 1
1 20
1...

result:

ok all sorted (12 test cases)

Extra Test:

score: 0
Extra Test Passed