QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#82324#4897. 音符大师ShmilyTY15 78ms17148kbC++236.8kb2023-02-27 15:40:092023-02-27 15:40:11

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 15
Accepted

Test #1:

score: 15
Accepted
time: 19ms
memory: 14336kb

input:

200 20
78 30 163 87 97 53 96 76 81 138 156 200 124 93 173 119 115 93 150 99 22 80 88 131 61 126 47 103 143 142 129 186 89 105 101 143 178 110 13 77 79 178 21 108 200 146 87 105 54 61 136 69 161 195 13 105 18 151 25 191 30 35 90 110 17 98 181 58 120 102 139 71 59 24 72 84 33 12 28 82 23 80 128 96 115...

output:

3669

result:

ok single line: '3669'

Test #2:

score: 0
Accepted
time: 21ms
memory: 11464kb

input:

200 48
94 162 22 10 28 87 165 108 7 143 94 185 98 181 159 0 170 15 112 29 137 119 108 109 72 22 132 96 105 117 189 49 122 76 154 142 13 184 158 198 162 75 24 192 150 166 170 48 124 154 94 165 50 38 170 192 107 11 19 188 111 36 23 28 165 178 91 184 188 9 65 26 6 78 51 58 72 57 41 92 90 0 81 191 133 1...

output:

1665

result:

ok single line: '1665'

Test #3:

score: 0
Accepted
time: 0ms
memory: 8988kb

input:

200 6
129 31 73 103 93 174 111 45 59 173 87 61 41 146 86 60 84 95 126 149 164 190 42 10 113 153 51 33 7 191 64 165 200 139 20 81 140 196 40 155 166 78 77 162 150 59 93 174 137 62 32 42 155 42 176 185 136 101 52 178 68 168 160 141 27 141 182 197 29 43 52 3 59 101 27 148 129 183 160 178 40 83 26 37 61...

output:

5261

result:

ok single line: '5261'

Test #4:

score: 0
Accepted
time: 24ms
memory: 14388kb

input:

200 32
193 9 97 35 133 131 163 131 28 128 135 28 20 149 34 92 148 171 98 87 88 121 195 67 28 134 61 42 120 7 31 179 194 155 69 32 9 126 28 180 144 98 101 188 38 150 22 114 20 32 99 15 95 125 147 99 186 188 178 155 44 57 5 157 154 173 164 111 175 137 52 41 22 80 113 172 93 151 33 64 37 187 40 70 20 3...

output:

2919

result:

ok single line: '2919'

Test #5:

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

input:

200 45
193 39 78 169 128 182 91 182 21 15 37 177 144 184 193 79 85 126 35 135 29 62 176 25 164 42 150 174 170 110 113 147 15 46 158 122 195 139 188 170 28 107 45 147 46 171 0 180 67 66 194 54 9 6 33 115 183 119 132 83 165 56 124 178 90 68 30 185 60 105 31 139 36 10 112 13 70 168 38 5 194 42 170 37 7...

output:

1880

result:

ok single line: '1880'

Test #6:

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

input:

200 47
196 61 44 155 195 196 174 199 28 55 41 70 50 43 129 176 143 172 196 33 19 58 100 136 125 94 31 53 71 69 96 62 41 163 1 43 62 63 183 179 175 107 65 198 40 198 172 43 14 44 0 190 197 171 128 187 20 34 84 183 183 146 128 46 42 87 122 168 183 107 105 165 7 29 8 4 7 164 177 161 50 0 12 70 68 123 1...

output:

1473

result:

ok single line: '1473'

Test #7:

score: 0
Accepted
time: 3ms
memory: 10776kb

input:

200 14
191 73 156 161 162 165 168 165 174 44 41 34 60 18 18 18 112 166 71 71 10 20 19 29 137 147 148 69 37 40 42 32 178 118 183 193 183 171 93 100 27 29 37 28 22 14 26 186 147 161 158 8 10 12 6 3 190 107 127 127 124 115 122 159 155 157 44 63 114 114 114 116 124 76 151 137 77 9 198 5 5 17 185 179 178...

output:

2484

result:

ok single line: '2484'

Test #8:

score: 0
Accepted
time: 4ms
memory: 10512kb

input:

200 8
2 0 7 13 9 147 144 136 100 108 115 163 170 168 64 64 62 61 130 127 122 77 3 0 78 84 61 53 59 60 62 54 55 48 119 76 13 8 2 0 197 199 195 32 29 36 35 35 28 6 165 171 99 76 69 76 68 186 179 137 145 149 144 144 5 22 132 139 5 9 14 20 21 13 7 51 84 137 58 66 71 162 157 150 150 153 159 145 149 147 1...

output:

2616

result:

ok single line: '2616'

Test #9:

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

input:

200 37
195 162 181 5 182 151 176 158 121 115 168 167 147 76 92 127 184 150 192 21 58 34 14 21 34 81 91 95 34 53 61 45 192 182 194 193 171 188 10 59 31 29 170 44 74 37 4 18 195 28 6 182 184 73 101 114 10 175 195 21 21 6 178 7 196 146 163 175 182 186 160 123 148 157 187 171 134 179 179 194 194 163 169...

output:

1901

result:

ok single line: '1901'

Test #10:

score: 0
Accepted
time: 10ms
memory: 10440kb

input:

200 7
24 18 24 25 22 26 12 7 1 56 55 52 53 125 60 64 68 196 196 199 197 190 191 182 181 3 186 61 119 120 142 141 142 47 188 188 190 183 187 154 147 24 18 11 4 200 200 200 68 73 177 173 173 99 23 27 50 52 54 56 55 60 65 69 74 148 153 105 103 109 103 103 103 109 102 97 94 29 29 26 25 37 177 184 115 14...

output:

2257

result:

ok single line: '2257'

Test #11:

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

input:

192 19
99 102 103 96 95 106 93 92 109 90 89 88 87 86 85 116 117 118 81 80 121 78 123 76 125 126 127 128 129 130 69 68 133 134 135 136 63 138 139 60 141 58 57 144 55 146 147 148 149 50 151 152 153 46 155 44 43 158 41 40 39 38 163 164 165 34 167 168 169 30 29 28 173 174 25 24 23 22 21 180 19 18 17 16 ...

output:

457

result:

ok single line: '457'

Test #12:

score: 0
Accepted
time: 24ms
memory: 15748kb

input:

199 49
101 98 97 96 95 94 107 108 109 90 111 88 87 114 115 116 83 118 119 80 79 78 77 76 75 126 73 72 129 130 69 132 133 66 135 64 137 138 61 60 59 58 57 56 145 146 53 148 149 50 49 152 47 154 155 44 157 158 159 40 161 38 163 164 35 166 33 168 31 170 171 172 27 174 175 176 177 178 21 20 19 18 183 16...

output:

293

result:

ok single line: '293'

Test #13:

score: 0
Accepted
time: 78ms
memory: 16628kb

input:

194 45
100 101 99 102 98 103 97 104 96 105 95 106 94 107 93 108 92 109 91 110 90 111 89 112 88 113 87 114 86 115 85 116 84 117 83 118 82 119 81 120 80 121 79 122 78 123 77 124 76 125 75 126 74 127 73 128 72 129 71 130 70 131 69 132 68 133 67 134 66 135 65 136 64 137 63 138 62 139 61 140 60 141 59 14...

output:

212

result:

ok single line: '212'

Test #14:

score: 0
Accepted
time: 17ms
memory: 10856kb

input:

194 22
100 101 99 102 98 103 97 104 96 105 95 106 94 107 93 108 92 109 91 110 90 111 89 112 88 113 87 114 86 115 85 116 84 117 83 118 82 119 81 120 80 121 79 122 78 123 77 124 76 125 75 126 74 127 73 128 72 129 71 130 70 131 69 132 68 133 67 134 66 135 65 136 64 137 63 138 62 139 61 140 60 141 59 14...

output:

303

result:

ok single line: '303'

Test #15:

score: 0
Accepted
time: 22ms
memory: 11172kb

input:

199 28
1 199 2 198 3 197 4 196 5 195 6 194 7 193 8 192 9 191 10 190 11 189 12 188 13 187 14 186 15 185 16 184 17 183 18 182 19 181 20 180 21 179 22 178 23 177 24 176 25 175 26 174 27 173 28 172 29 171 30 170 31 169 32 168 33 167 34 166 35 165 36 164 37 163 38 162 39 161 40 160 41 159 42 158 43 157 4...

output:

313

result:

ok single line: '313'

Test #16:

score: 0
Accepted
time: 35ms
memory: 16300kb

input:

193 42
4 196 5 195 6 194 7 193 8 192 9 191 10 190 11 189 12 188 13 187 14 186 15 185 16 184 17 183 18 182 19 181 20 180 21 179 22 178 23 177 24 176 25 175 26 174 27 173 28 172 29 171 30 170 31 169 32 168 33 167 34 166 35 165 36 164 37 163 38 162 39 161 40 160 41 159 42 158 43 157 44 156 45 155 46 15...

output:

265

result:

ok single line: '265'

Test #17:

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

input:

197 39
96 95 106 107 92 91 90 89 88 87 86 115 84 83 82 81 80 79 78 77 124 125 74 127 128 129 70 69 68 67 66 135 136 63 138 61 60 141 58 143 56 55 54 147 52 51 150 151 48 153 46 45 156 43 42 159 40 161 38 37 36 35 166 33 168 31 170 171 28 27 26 25 24 23 22 21 180 19 182 183 184 185 186 187 188 11 10 ...

output:

347

result:

ok single line: '347'

Test #18:

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

input:

198 24
103 96 95 94 93 108 91 110 89 112 113 114 115 116 117 82 81 120 79 78 123 76 75 126 73 128 129 70 131 68 67 66 65 136 137 138 61 140 141 58 57 56 55 54 53 148 149 50 49 152 153 46 45 156 157 42 159 160 161 162 163 36 35 166 167 32 169 30 171 28 27 26 25 176 23 22 21 20 181 18 183 184 185 14 1...

output:

439

result:

ok single line: '439'

Subtask #2:

score: 0
Memory Limit Exceeded

Test #19:

score: 0
Memory Limit Exceeded

input:

50000 0
957304147 455870042 888520405 388924006 685268286 213595280 898496267 50362797 310595209 105517171 706682592 663787741 927429771 306122736 1352192 453945549 31881610 943782347 779421515 543589796 209926777 908434673 845417119 374441290 190474943 606994057 30091060 491598457 644246786 4649716...

output:


result:


Subtask #3:

score: 0
Skipped

Dependency #2:

0%

Subtask #4:

score: 0
Skipped

Dependency #3:

0%