Ticket 1338
Problem 1649 -e
View hacks & all small testcases

Unable to dry run this testcase?
Try making a new request with small values of n_high, t_high, *_high, etc.


Retry
Input
94 50
26 64 163 110 112 122 24 36 104 64 163 162 165 134 21 119 82 177 200 177 147 43 132 100 154 139 82 42 123 18 4 30 200 150 155 80 61 178 159 116 133 12 44 18 115 102 71 32 194 87 52 99 158 7 131 130 41 22 175 59 95 109 158 132 82 131 52 59 198 25 31 54 198 103 84 125 29 21 161 51 102 10 185 88 189 97 91 89 68 175 59 23 191 79 
152 36 104 22 92 73 108 151 192 11 187 143 189 1 76 42 27 120 103 125 38 119 193 89 12 139 187 71 200 52 132 127 58 30 10 159 125 178 125 34 120 82 85 86 174 24 14 173 118 39 
Expected Output
9215826
Generator Parameters
--m_cap 200000 --m_high 100 --m_low 1 --n_cap 200000 --n_high 100 --n_low 1 --val_cap 200000 --val_high 200 --val_low 1