QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#381561 | #6255. Conveyor Belts | lmq26052003 | AC ✓ | 1ms | 3716kb | C++20 | 1.1kb | 2024-04-07 19:00:38 | 2024-04-07 19:00:38 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3636kb
input:
2 3 3 2
output:
15 1 2 0 0 3 0 4 5 3 6 9 3 7 8 6 -2 -1 6 10 11 9 0 12 9 13 14 12 -1 0 12
result:
ok all right
Test #2:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
1 2 3 4
output:
12 1 2 0 0 3 0 4 5 3 -2 6 3 7 8 6 -1 9 6 10 11 9 -1 0 9
result:
ok all right
Test #3:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
1 2 1 2
output:
9 1 2 0 0 3 0 4 5 3 -2 6 3 7 8 6 -1 0 6
result:
ok all right
Test #4:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
1 1 1 1
output:
6 1 2 0 0 3 0 4 5 3 -2 -1 3
result:
ok all right
Test #5:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
2 1 1 1
output:
6 1 2 0 0 3 0 4 5 3 -2 -1 3
result:
ok all right
Test #6:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
1 1 1 2
output:
9 1 2 0 0 3 0 4 5 3 -2 6 3 7 8 6 -1 0 6
result:
ok all right
Test #7:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
2 1 1 2
output:
9 1 2 0 0 3 0 4 5 3 -2 6 3 7 8 6 -1 0 6
result:
ok all right
Test #8:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
1 1 2 1
output:
9 1 2 0 0 3 0 4 5 3 -1 6 3 7 8 6 -2 0 6
result:
ok all right
Test #9:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
1 1 12 41
output:
24 1 2 0 0 3 0 4 5 3 -2 6 3 7 8 6 9 12 6 10 11 9 -2 -1 9 13 14 12 0 15 12 16 17 15 -1 18 15 19 20 18 0 21 18 22 23 21 -2 0 21
result:
ok all right
Test #10:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
12 41 1 1
output:
6 1 2 0 0 3 0 4 5 3 -2 -1 3
result:
ok all right
Test #11:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
234324 321532535 1 999999999
output:
93 1 2 0 0 3 0 4 5 3 -2 6 3 7 8 6 -2 9 6 10 11 9 -2 12 9 13 14 12 0 15 12 16 17 15 -2 18 15 19 20 18 -2 21 18 22 23 21 -2 24 21 25 26 24 0 27 24 28 29 27 0 30 27 31 32 30 -2 33 30 34 35 33 -2 36 33 37 38 36 0 39 36 40 41 39 -2 42 39 43 44 42 0 45 42 46 47 45 -2 48 45 49 50 48 -2 51 48 52 53 51 0 54 ...
result:
ok all right
Test #12:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
999999999 1 1 2
output:
9 1 2 0 0 3 0 4 5 3 -2 6 3 7 8 6 -1 0 6
result:
ok all right
Test #13:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
1 1 1 999999999
output:
93 1 2 0 0 3 0 4 5 3 -2 6 3 7 8 6 -2 9 6 10 11 9 -2 12 9 13 14 12 0 15 12 16 17 15 -2 18 15 19 20 18 -2 21 18 22 23 21 -2 24 21 25 26 24 0 27 24 28 29 27 0 30 27 31 32 30 -2 33 30 34 35 33 -2 36 33 37 38 36 0 39 36 40 41 39 -2 42 39 43 44 42 0 45 42 46 47 45 -2 48 45 49 50 48 -2 51 48 52 53 51 0 54 ...
result:
ok all right
Test #14:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
499999999 499999998 1 1
output:
6 1 2 0 0 3 0 4 5 3 -2 -1 3
result:
ok all right
Test #15:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
1 1 499999999 499999998
output:
150 1 2 0 0 3 0 4 5 3 6 9 3 7 8 6 -2 -1 6 10 11 9 12 15 9 13 14 12 -2 -1 12 16 17 15 18 21 15 19 20 18 -2 -1 18 22 23 21 0 24 21 25 26 24 27 30 24 28 29 27 -2 -1 27 31 32 30 33 36 30 34 35 33 -2 -1 33 37 38 36 39 42 36 40 41 39 -2 -1 39 43 44 42 0 45 42 46 47 45 0 48 45 49 50 48 51 54 48 52 53 51 -2...
result:
ok all right
Test #16:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
1 4 1 3
output:
9 1 2 0 0 3 0 4 5 3 -2 6 3 7 8 6 -2 -1 6
result:
ok all right
Test #17:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
34 319 1 81938472
output:
84 1 2 0 0 3 0 4 5 3 -2 6 3 7 8 6 0 9 6 10 11 9 0 12 9 13 14 12 -2 15 12 16 17 15 -2 18 15 19 20 18 -2 21 18 22 23 21 0 24 21 25 26 24 0 27 24 28 29 27 0 30 27 31 32 30 -2 33 30 34 35 33 0 36 33 37 38 36 0 39 36 40 41 39 -2 42 39 43 44 42 0 45 42 46 47 45 0 48 45 49 50 48 -2 51 48 52 53 51 0 54 51 5...
result:
ok all right
Test #18:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
1239 321 5 123
output:
24 1 2 0 0 3 0 4 5 3 -2 6 3 7 8 6 -2 9 6 10 11 9 -2 12 9 13 14 12 -2 15 12 16 17 15 -1 18 15 19 20 18 -2 21 18 22 23 21 -2 -1 21
result:
ok all right
Test #19:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
2390 2398 63 65
output:
24 1 2 0 0 3 0 4 5 3 -2 6 3 7 8 6 -1 9 6 10 11 9 -1 12 9 13 14 12 -1 15 12 16 17 15 -1 18 15 19 20 18 -1 21 18 22 23 21 -2 -1 21
result:
ok all right
Test #20:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
234 342 63 63
output:
39 1 2 0 0 3 0 4 5 3 6 9 3 7 8 6 -2 -1 6 10 11 9 12 15 9 13 14 12 -2 -1 12 16 17 15 18 21 15 19 20 18 -2 -1 18 22 23 21 24 27 21 25 26 24 -2 -1 24 28 29 27 30 33 27 31 32 30 -2 -1 30 34 35 33 0 36 33 37 38 36 -2 -1 36
result:
ok all right
Test #21:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
1320 13 125 1
output:
24 1 2 0 0 3 0 4 5 3 -1 6 3 7 8 6 -1 9 6 10 11 9 -1 12 9 13 14 12 -1 15 12 16 17 15 -1 18 15 19 20 18 0 21 18 22 23 21 -2 -1 21
result:
ok all right
Test #22:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
293 24 43 42
output:
33 1 2 0 0 3 0 4 5 3 6 9 3 7 8 6 -2 -1 6 10 11 9 0 12 9 13 14 12 15 18 12 16 17 15 -2 -1 15 19 20 18 0 21 18 22 23 21 24 27 21 25 26 24 -2 -1 24 28 29 27 0 30 27 31 32 30 -1 0 30
result:
ok all right
Test #23:
score: 0
Accepted
time: 1ms
memory: 3656kb
input:
103 13 193837591 1829
output:
105 1 2 0 0 3 0 4 5 3 -1 6 3 7 8 6 0 9 6 10 11 9 -1 12 9 13 14 12 -1 15 12 16 17 15 -1 18 15 19 20 18 0 21 18 22 23 21 0 24 21 25 26 24 0 27 24 28 29 27 -1 30 27 31 32 30 -1 33 30 34 35 33 0 36 33 37 38 36 -1 39 36 40 41 39 -1 42 39 43 44 42 45 48 42 46 47 45 -1 0 45 49 50 48 51 54 48 52 53 51 -1 0 ...
result:
ok all right
Test #24:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
145113559 102175286 403669516 374446366
output:
120 1 2 0 0 3 0 4 5 3 6 9 3 7 8 6 -2 -1 6 10 11 9 0 12 9 13 14 12 -1 15 12 16 17 15 -2 18 15 19 20 18 -2 21 18 22 23 21 0 24 21 25 26 24 0 27 24 28 29 27 -2 30 27 31 32 30 33 36 30 34 35 33 -2 0 33 37 38 36 39 42 36 40 41 39 -1 0 39 43 44 42 45 48 42 46 47 45 -1 0 45 49 50 48 51 54 48 52 53 51 -1 0 ...
result:
ok all right
Test #25:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
8427610 461437860 30594198 17724191
output:
120 1 2 0 0 3 0 4 5 3 6 9 3 7 8 6 -2 -1 6 10 11 9 0 12 9 13 14 12 -1 15 12 16 17 15 -1 18 15 19 20 18 21 24 18 22 23 21 -1 0 21 25 26 24 27 30 24 28 29 27 -2 0 27 31 32 30 33 36 30 34 35 33 -2 0 33 37 38 36 39 42 36 40 41 39 -2 -1 39 43 44 42 0 45 42 46 47 45 48 51 45 49 50 48 -1 0 48 52 53 51 54 57...
result:
ok all right
Test #26:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
403200516 91105303 146424685 255836827
output:
138 1 2 0 0 3 0 4 5 3 6 9 3 7 8 6 -2 -1 6 10 11 9 0 12 9 13 14 12 -2 15 12 16 17 15 -2 18 15 19 20 18 -2 21 18 22 23 21 -1 24 21 25 26 24 27 30 24 28 29 27 -2 -1 27 31 32 30 33 36 30 34 35 33 -2 -1 33 37 38 36 39 42 36 40 41 39 -2 -1 39 43 44 42 45 48 42 46 47 45 -2 0 45 49 50 48 51 54 48 52 53 51 -...
result:
ok all right
Test #27:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
430301249 429688158 139761191 228863052
output:
114 1 2 0 0 3 0 4 5 3 6 9 3 7 8 6 -2 -1 6 10 11 9 0 12 9 13 14 12 -2 15 12 16 17 15 0 18 15 19 20 18 -2 21 18 22 23 21 -2 24 21 25 26 24 -1 27 24 28 29 27 -2 30 27 31 32 30 -1 33 30 34 35 33 36 39 33 37 38 36 -2 -1 36 40 41 39 0 42 39 43 44 42 0 45 42 46 47 45 0 48 45 49 50 48 -1 51 48 52 53 51 54 5...
result:
ok all right
Test #28:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
115663302 418071534 385437260 126789363
output:
129 1 2 0 0 3 0 4 5 3 -1 6 3 7 8 6 9 12 6 10 11 9 -2 -1 9 13 14 12 15 18 12 16 17 15 -2 -1 15 19 20 18 21 24 18 22 23 21 -2 0 21 25 26 24 27 30 24 28 29 27 -2 -1 27 31 32 30 33 36 30 34 35 33 -1 0 33 37 38 36 39 42 36 40 41 39 -1 0 39 43 44 42 45 48 42 46 47 45 -1 0 45 49 50 48 51 54 48 52 53 51 -2 ...
result:
ok all right
Test #29:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
180663531 429388001 284312340 467950572
output:
114 1 2 0 0 3 0 4 5 3 6 9 3 7 8 6 -2 -1 6 10 11 9 0 12 9 13 14 12 -2 15 12 16 17 15 18 21 15 19 20 18 -2 0 18 22 23 21 24 27 21 25 26 24 -2 0 24 28 29 27 30 33 27 31 32 30 -2 -1 30 34 35 33 36 39 33 37 38 36 -2 -1 36 40 41 39 42 45 39 43 44 42 -2 -1 42 46 47 45 0 48 45 49 50 48 -1 51 48 52 53 51 0 5...
result:
ok all right
Test #30:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
842 927 96 294
output:
33 1 2 0 0 3 0 4 5 3 -2 6 3 7 8 6 9 12 6 10 11 9 -1 0 9 13 14 12 15 18 12 16 17 15 -2 -1 15 19 20 18 0 21 18 22 23 21 0 24 21 25 26 24 0 27 24 28 29 27 -2 30 27 31 32 30 -2 0 30
result:
ok all right
Test #31:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
97 220 182 103
output:
45 1 2 0 0 3 0 4 5 3 6 9 3 7 8 6 -1 0 6 10 11 9 12 15 9 13 14 12 -2 0 12 16 17 15 18 21 15 19 20 18 -2 -1 18 22 23 21 0 24 21 25 26 24 -1 27 24 28 29 27 30 33 27 31 32 30 -2 -1 30 34 35 33 36 39 33 37 38 36 -2 -1 36 40 41 39 0 42 39 43 44 42 -2 0 42
result:
ok all right
Test #32:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
490 238 830 184
output:
39 1 2 0 0 3 0 4 5 3 -1 6 3 7 8 6 -1 9 6 10 11 9 -2 12 9 13 14 12 15 18 12 16 17 15 -2 -1 15 19 20 18 21 24 18 22 23 21 -2 -1 21 25 26 24 27 30 24 28 29 27 -2 -1 27 31 32 30 0 33 30 34 35 33 -1 36 33 37 38 36 -1 0 36
result:
ok all right
Test #33:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
245 133 509 604
output:
60 1 2 0 0 3 0 4 5 3 6 9 3 7 8 6 -2 0 6 10 11 9 12 15 9 13 14 12 -1 0 12 16 17 15 18 21 15 19 20 18 -1 0 18 22 23 21 24 27 21 25 26 24 -2 -1 24 28 29 27 30 33 27 31 32 30 -1 0 30 34 35 33 36 39 33 37 38 36 -2 -1 36 40 41 39 42 45 39 43 44 42 -2 -1 42 46 47 45 48 51 45 49 50 48 -2 -1 48 52 53 51 0 54...
result:
ok all right
Test #34:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
4 2 1 3
output:
9 1 2 0 0 3 0 4 5 3 -2 6 3 7 8 6 -2 -1 6
result:
ok all right
Test #35:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
10 6 8 4
output:
9 1 2 0 0 3 0 4 5 3 -1 6 3 7 8 6 -2 0 6
result:
ok all right
Test #36:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
8 8 1 9
output:
15 1 2 0 0 3 0 4 5 3 -2 6 3 7 8 6 0 9 6 10 11 9 0 12 9 13 14 12 -2 -1 12
result:
ok all right
Test #37:
score: 0
Accepted
time: 1ms
memory: 3668kb
input:
8 8 5 8
output:
15 1 2 0 0 3 0 4 5 3 -2 6 3 7 8 6 -1 9 6 10 11 9 0 12 9 13 14 12 -1 0 12
result:
ok all right
Test #38:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
10 1 1 6
output:
12 1 2 0 0 3 0 4 5 3 -2 6 3 7 8 6 -2 9 6 10 11 9 -1 0 9
result:
ok all right