QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#465814 | #3983. King's Colors | ucup-team1005# | AC ✓ | 1ms | 3732kb | C++20 | 967b | 2024-07-07 10:26:19 | 2024-07-07 10:26:19 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3676kb
input:
4 3 0 1 1
output:
18
result:
ok single line: '18'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
6 4 0 1 1 3 4
output:
600
result:
ok single line: '600'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2 2 0
output:
2
result:
ok single line: '2'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
5 5 0 0 0 2
output:
120
result:
ok single line: '120'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
5 2 0 0 1 3
output:
2
result:
ok single line: '2'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
5 3 0 1 0 3
output:
42
result:
ok single line: '42'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
2500 2500 0 1 2 0 3 1 5 0 2 1 5 7 3 6 8 3 7 0 6 13 8 5 12 5 24 25 2 4 19 19 14 8 8 0 0 13 13 10 10 18 20 12 34 43 40 13 11 44 12 24 19 1 23 26 10 9 16 4 21 19 52 38 37 0 43 8 39 45 39 61 40 23 61 60 22 7 32 2 45 51 2 70 53 46 48 74 1 57 5 23 79 25 15 31 59 44 65 45 67 32 99 59 13 75 95 99 102 47 37 ...
output:
954730329
result:
ok single line: '954730329'
Test #8:
score: 0
Accepted
time: 1ms
memory: 3732kb
input:
2500 2 0 1 1 0 0 1 5 7 5 5 0 4 7 12 3 13 3 6 18 17 8 21 19 21 2 13 10 2 11 25 13 16 28 6 12 18 6 2 37 12 23 31 12 32 36 41 44 32 1 40 23 15 38 27 19 22 37 7 5 32 56 43 33 25 14 34 39 25 48 61 28 17 26 66 1 24 21 2 42 71 79 79 39 47 48 67 49 37 16 86 62 6 23 54 76 95 50 12 56 31 11 77 85 57 57 100 10...
output:
2
result:
ok single line: '2'
Test #9:
score: 0
Accepted
time: 1ms
memory: 3672kb
input:
2500 3 0 0 1 0 0 4 0 5 0 8 3 0 1 6 6 2 7 2 17 13 1 18 3 7 20 20 18 1 18 18 12 3 14 2 8 18 26 9 34 7 36 19 35 43 11 6 37 36 40 12 23 6 35 45 4 36 3 39 13 31 43 34 27 40 59 58 46 38 31 23 31 10 38 67 63 43 57 36 77 9 15 65 53 21 43 19 62 53 5 85 9 71 73 40 43 88 44 76 63 74 58 8 11 34 60 89 85 8 7 93 ...
output:
469786897
result:
ok single line: '469786897'
Test #10:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
2500 930 0 1 0 1 0 0 1 3 8 3 6 10 0 7 7 14 12 15 18 6 12 2 15 7 24 0 22 8 16 13 15 24 7 16 6 4 24 24 6 3 21 15 5 31 41 33 13 37 9 38 4 34 2 31 44 12 9 55 37 29 46 37 56 56 36 45 54 17 20 12 68 40 45 63 64 25 39 19 45 67 36 65 9 64 69 28 44 31 1 37 43 28 34 4 54 32 48 38 90 53 22 84 50 14 21 84 3 25 ...
output:
443953022
result:
ok single line: '443953022'
Test #11:
score: 0
Accepted
time: 1ms
memory: 3716kb
input:
2500 1898 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 ...
output:
233871962
result:
ok single line: '233871962'
Test #12:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
2500 2342 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 ...
output:
456768632
result:
ok single line: '456768632'
Test #13:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
2500 1854 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 9...
output:
640546508
result:
ok single line: '640546508'