QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#805183 | #8088. Eevee | MaMengQi | AC ✓ | 935ms | 8092kb | C++14 | 1.5kb | 2024-12-08 14:11:43 | 2024-12-08 14:11:43 |
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: 3592kb
input:
3 3 1 2 3 3 2 1 1 3 2
output:
1464
result:
ok 1 number(s): "1464"
Test #2:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
4 2 1 2 2 1 1 2 2 1
output:
2466
result:
ok 1 number(s): "2466"
Test #3:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
2 2 1 2 2 1
output:
2
result:
ok 1 number(s): "2"
Test #4:
score: 0
Accepted
time: 0ms
memory: 3888kb
input:
3 3 1 2 3 2 1 3 3 2 1
output:
1460
result:
ok 1 number(s): "1460"
Test #5:
score: 0
Accepted
time: 0ms
memory: 3892kb
input:
3 5 5 3 2 4 1 1 3 5 2 4 2 3 1 4 5
output:
642958
result:
ok 1 number(s): "642958"
Test #6:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
5 3 3 1 2 3 2 1 3 1 2 2 1 3 3 1 2
output:
167319102
result:
ok 1 number(s): "167319102"
Test #7:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
4 5 4 5 2 3 1 4 1 5 2 3 2 1 3 5 4 3 4 5 2 1
output:
647545457
result:
ok 1 number(s): "647545457"
Test #8:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
5 4 2 4 1 3 4 2 1 3 3 1 2 4 1 3 2 4 1 2 3 4
output:
100022503
result:
ok 1 number(s): "100022503"
Test #9:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
3 10 10 7 8 1 9 3 4 2 5 6 9 10 3 6 7 1 5 4 8 2 2 5 3 1 8 7 6 10 4 9
output:
169540441
result:
ok 1 number(s): "169540441"
Test #10:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
10 3 1 3 2 2 3 1 2 1 3 3 2 1 3 1 2 3 1 2 1 3 2 3 2 1 3 1 2 2 3 1
output:
125076709
result:
ok 1 number(s): "125076709"
Test #11:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
7 8 5 8 7 1 6 4 3 2 5 2 4 1 3 8 6 7 1 7 5 2 8 6 4 3 5 4 8 7 2 6 1 3 8 7 5 3 1 4 2 6 3 8 5 7 4 1 2 6 7 6 4 1 5 3 2 8
output:
437151578
result:
ok 1 number(s): "437151578"
Test #12:
score: 0
Accepted
time: 0ms
memory: 3912kb
input:
12 10 3 2 6 5 7 1 4 8 9 10 8 9 1 7 6 10 5 4 2 3 3 8 6 9 10 2 1 5 7 4 4 6 5 2 10 8 3 9 7 1 2 4 3 7 1 6 9 8 10 5 9 5 10 8 2 3 4 6 1 7 1 8 3 6 4 5 10 2 7 9 10 5 2 4 1 3 9 8 7 6 2 5 4 10 1 9 6 8 3 7 7 2 5 10 3 6 4 8 1 9 4 10 2 8 7 6 5 1 3 9 7 9 5 2 8 6 4 1 10 3
output:
493423951
result:
ok 1 number(s): "493423951"
Test #13:
score: 0
Accepted
time: 2ms
memory: 3704kb
input:
30 31 13 28 4 10 18 12 2 8 6 31 20 11 25 30 27 5 14 19 15 24 21 17 16 7 26 1 9 3 23 29 22 29 20 24 11 5 1 16 21 6 4 22 17 2 27 3 7 26 13 10 31 14 12 15 18 23 28 8 25 19 9 30 6 17 27 22 18 3 23 29 16 28 15 24 13 10 30 21 1 26 12 4 8 11 20 5 19 2 9 25 7 14 31 8 28 12 3 2 10 17 21 1 30 18 9 13 27 6 22 ...
output:
588481549
result:
ok 1 number(s): "588481549"
Test #14:
score: 0
Accepted
time: 4ms
memory: 3732kb
input:
40 50 9 41 10 15 7 17 29 13 19 4 32 20 49 44 3 43 37 33 28 24 2 11 46 18 39 31 27 42 47 45 48 6 35 25 8 16 23 26 50 21 40 5 14 1 22 12 30 34 36 38 2 5 7 17 12 24 31 26 25 50 1 4 43 33 20 9 22 16 19 45 3 49 10 41 30 8 18 44 42 35 47 46 29 15 37 36 48 6 34 27 23 38 11 21 32 28 14 39 40 13 17 4 23 13 3...
output:
540201084
result:
ok 1 number(s): "540201084"
Test #15:
score: 0
Accepted
time: 92ms
memory: 4592kb
input:
120 150 108 117 139 110 126 59 101 107 67 146 65 91 96 41 69 75 17 13 58 82 93 21 31 85 3 100 97 10 92 122 6 83 16 90 18 39 114 57 4 80 15 133 95 29 61 74 150 38 138 109 40 52 134 115 47 44 132 62 131 137 7 87 147 130 124 55 99 104 51 63 36 141 49 9 72 86 145 127 113 84 11 26 54 123 27 77 14 8 30 12...
output:
696944720
result:
ok 1 number(s): "696944720"
Test #16:
score: 0
Accepted
time: 84ms
memory: 4672kb
input:
150 120 81 79 59 57 2 26 6 76 39 20 24 16 86 7 106 110 47 13 96 12 104 11 1 72 78 33 35 118 70 83 53 89 84 60 45 119 116 94 91 54 27 46 102 90 75 101 44 18 88 34 112 105 61 107 55 3 120 22 50 87 52 64 51 19 68 29 115 108 98 109 42 113 99 43 41 95 92 5 82 49 65 103 28 48 100 37 38 36 85 23 32 97 63 5...
output:
273359937
result:
ok 1 number(s): "273359937"
Test #17:
score: 0
Accepted
time: 565ms
memory: 7204kb
input:
200 300 272 251 3 196 24 27 226 297 250 118 247 161 162 139 106 59 299 122 229 208 143 256 131 62 218 142 21 230 228 152 71 246 113 216 126 125 257 134 195 51 203 285 55 223 288 206 48 281 154 156 91 204 61 104 1 264 101 88 39 292 240 268 212 64 79 234 182 270 260 42 278 127 95 266 293 98 151 67 188...
output:
810934582
result:
ok 1 number(s): "810934582"
Test #18:
score: 0
Accepted
time: 474ms
memory: 5884kb
input:
300 200 102 74 16 193 33 45 178 192 180 77 127 199 52 89 62 55 172 15 80 142 123 183 148 114 75 25 186 63 197 107 198 82 189 97 162 41 90 125 134 36 113 118 32 73 70 9 58 24 17 71 14 44 133 4 10 11 46 6 23 99 184 43 19 124 115 85 96 130 129 196 111 29 88 66 122 188 39 100 108 159 146 101 185 126 26 ...
output:
850931697
result:
ok 1 number(s): "850931697"
Test #19:
score: 0
Accepted
time: 932ms
memory: 7888kb
input:
300 300 140 152 193 233 236 274 46 272 206 23 199 273 241 161 275 143 181 139 97 154 7 203 71 126 151 240 123 256 53 61 16 183 24 286 56 227 277 12 150 224 172 246 138 101 82 259 60 221 112 255 190 293 32 220 213 64 242 159 129 48 136 292 176 249 1 202 265 167 238 125 133 117 18 27 67 115 29 80 185 ...
output:
873365273
result:
ok 1 number(s): "873365273"
Test #20:
score: 0
Accepted
time: 926ms
memory: 7840kb
input:
299 300 175 271 14 193 144 257 197 22 149 10 226 26 254 60 3 209 71 118 208 173 40 67 293 247 258 177 2 13 121 169 59 75 224 81 49 263 164 230 286 153 50 232 116 31 35 277 227 24 46 83 221 218 93 178 135 181 85 146 114 212 186 57 47 39 233 132 242 187 127 110 64 89 63 122 86 103 27 280 291 167 133 4...
output:
308966379
result:
ok 1 number(s): "308966379"
Test #21:
score: 0
Accepted
time: 921ms
memory: 8092kb
input:
300 299 159 65 140 283 48 250 133 223 158 49 248 287 47 135 76 125 105 275 230 291 118 256 142 36 92 236 208 128 270 95 4 211 101 102 254 98 273 297 187 165 149 244 144 115 8 6 86 195 153 31 24 280 88 69 13 14 136 201 121 197 89 294 247 214 156 30 173 80 3 243 61 145 43 27 266 85 200 77 167 148 204 ...
output:
480069943
result:
ok 1 number(s): "480069943"
Test #22:
score: 0
Accepted
time: 874ms
memory: 7860kb
input:
290 297 177 122 233 192 53 52 27 157 92 223 113 61 69 95 265 193 253 270 70 45 22 174 285 149 24 116 217 33 4 66 8 179 159 214 5 141 248 85 165 30 176 247 114 212 200 227 28 10 150 203 184 294 121 292 120 56 182 107 64 199 237 283 251 90 129 9 171 188 156 106 238 290 255 109 42 289 67 262 80 257 146...
output:
307925086
result:
ok 1 number(s): "307925086"
Test #23:
score: 0
Accepted
time: 779ms
memory: 7916kb
input:
278 287 71 260 261 270 275 93 230 151 17 287 183 240 55 69 63 198 145 206 185 141 57 205 74 102 76 187 143 26 87 281 20 252 65 15 67 124 170 46 249 253 66 73 101 203 233 236 107 58 38 83 214 231 163 180 234 218 30 25 258 80 276 100 164 186 90 108 70 72 211 39 242 246 175 227 216 3 42 97 259 19 188 4...
output:
781148479
result:
ok 1 number(s): "781148479"
Test #24:
score: 0
Accepted
time: 742ms
memory: 7660kb
input:
279 277 49 138 121 269 24 20 8 59 255 128 248 266 29 39 258 256 53 209 86 34 240 152 179 174 156 187 214 23 161 216 253 104 197 38 274 204 231 199 173 215 221 120 26 276 142 50 80 63 247 170 76 85 11 123 229 21 224 158 198 89 69 22 139 75 103 36 32 90 146 31 238 79 207 208 223 119 30 67 219 186 51 1...
output:
673531671
result:
ok 1 number(s): "673531671"
Test #25:
score: 0
Accepted
time: 798ms
memory: 7636kb
input:
272 296 190 90 55 183 113 243 2 191 149 219 155 224 251 192 103 185 82 141 79 94 100 269 89 234 292 49 102 277 231 59 80 232 86 230 174 144 168 68 284 242 33 237 38 259 17 101 280 16 193 139 256 71 163 290 180 279 92 145 217 73 147 273 74 189 21 271 105 295 37 157 167 143 253 228 211 95 186 127 52 1...
output:
408065228
result:
ok 1 number(s): "408065228"
Test #26:
score: 0
Accepted
time: 794ms
memory: 7840kb
input:
273 295 115 256 264 44 279 289 69 31 153 288 24 185 129 277 67 176 92 103 157 32 235 62 19 110 270 224 30 165 193 196 140 156 124 136 147 39 80 173 278 207 114 200 192 241 82 55 221 283 148 215 195 294 130 142 249 61 265 88 204 216 231 233 177 108 77 276 89 97 40 275 45 106 123 282 133 212 245 58 20...
output:
228595376
result:
ok 1 number(s): "228595376"
Test #27:
score: 0
Accepted
time: 798ms
memory: 7664kb
input:
274 294 240 102 67 209 229 271 223 185 86 245 20 142 164 5 14 49 2 194 266 159 120 113 85 91 252 4 58 163 92 136 17 76 115 116 257 51 183 32 200 224 108 197 175 198 236 8 96 84 16 139 253 146 275 110 280 64 72 81 263 55 10 181 193 241 145 54 126 63 154 255 166 273 293 42 114 59 127 121 172 188 259 3...
output:
690326
result:
ok 1 number(s): "690326"
Test #28:
score: 0
Accepted
time: 800ms
memory: 7632kb
input:
275 293 196 184 286 185 139 44 148 118 267 142 60 121 218 43 233 17 248 270 128 87 105 55 168 111 235 282 177 276 156 272 232 204 289 6 264 15 219 192 180 36 137 46 283 86 16 64 280 75 65 152 226 104 93 175 224 90 186 212 230 140 35 216 287 176 115 217 262 273 28 106 24 30 194 74 191 145 39 170 22 6...
output:
910295383
result:
ok 1 number(s): "910295383"
Test #29:
score: 0
Accepted
time: 934ms
memory: 7972kb
input:
300 300 220 205 229 187 27 86 257 65 235 263 11 134 253 167 191 13 2 199 4 280 120 162 92 94 245 181 106 93 98 298 112 265 68 74 43 251 34 26 223 176 239 8 83 113 28 105 264 90 234 81 282 87 226 259 82 209 287 286 103 171 172 206 238 195 102 192 130 3 127 23 212 154 163 141 214 219 142 275 42 119 12...
output:
708953860
result:
ok 1 number(s): "708953860"
Test #30:
score: 0
Accepted
time: 933ms
memory: 7924kb
input:
300 300 164 129 23 247 37 55 221 57 243 112 5 215 193 40 122 135 85 69 165 184 90 234 282 148 291 84 151 186 93 177 125 256 216 281 131 252 258 203 261 123 255 147 141 235 49 30 108 94 11 21 137 239 180 240 237 174 149 263 99 269 118 271 45 87 100 206 178 54 7 163 218 24 74 98 117 169 101 126 50 53 ...
output:
331230757
result:
ok 1 number(s): "331230757"
Test #31:
score: 0
Accepted
time: 932ms
memory: 7868kb
input:
300 300 153 173 170 23 112 3 79 149 104 145 271 141 65 118 218 160 164 8 66 212 215 276 245 210 101 108 5 154 93 39 277 259 162 293 135 172 246 32 113 268 60 283 99 255 84 269 127 209 208 22 248 96 253 59 122 45 291 182 180 73 74 278 281 295 41 241 205 163 48 189 94 24 43 287 69 231 134 25 150 128 1...
output:
79139634
result:
ok 1 number(s): "79139634"
Test #32:
score: 0
Accepted
time: 930ms
memory: 7936kb
input:
300 300 94 199 50 209 90 148 157 81 210 87 98 44 146 233 135 133 16 49 294 239 248 215 170 11 150 270 99 286 284 249 193 164 103 61 166 68 275 222 80 114 51 37 22 195 279 235 240 116 8 70 251 213 26 3 86 231 27 1 128 64 136 225 207 84 163 180 183 293 53 296 71 35 190 290 194 280 171 73 169 176 262 2...
output:
1646489
result:
ok 1 number(s): "1646489"
Test #33:
score: 0
Accepted
time: 932ms
memory: 7920kb
input:
300 300 280 61 52 104 119 3 133 91 160 259 174 182 28 32 251 224 122 197 60 181 223 245 296 215 217 40 124 162 218 64 239 49 157 231 178 89 13 184 128 129 165 70 283 84 260 24 233 83 241 45 38 211 262 194 110 14 101 72 149 147 62 163 153 48 250 123 69 273 216 130 230 46 204 267 112 226 247 256 189 2...
output:
847223574
result:
ok 1 number(s): "847223574"
Test #34:
score: 0
Accepted
time: 930ms
memory: 8052kb
input:
300 300 98 47 78 115 273 111 76 256 103 149 22 79 104 231 68 91 287 167 128 298 160 264 181 295 41 180 283 67 105 297 71 142 215 117 116 224 130 208 101 250 223 239 274 26 95 56 267 94 212 269 133 227 255 173 112 187 8 20 205 163 109 61 190 40 294 276 85 139 253 221 242 296 199 52 158 268 219 19 90 ...
output:
457550727
result:
ok 1 number(s): "457550727"
Test #35:
score: 0
Accepted
time: 935ms
memory: 7944kb
input:
300 300 160 95 58 62 137 103 163 247 199 158 131 140 183 250 53 108 252 96 208 267 187 134 195 296 181 114 16 13 141 67 258 216 219 215 269 266 7 78 162 243 92 66 218 28 123 260 126 236 300 44 118 157 263 261 232 224 254 60 88 43 61 80 289 139 24 237 35 100 2 30 94 10 18 194 41 272 31 68 82 99 97 89...
output:
88757761
result:
ok 1 number(s): "88757761"
Test #36:
score: 0
Accepted
time: 920ms
memory: 7936kb
input:
300 300 154 13 50 163 134 244 111 133 177 156 31 222 160 164 257 18 184 105 106 284 122 143 167 16 273 51 109 283 213 251 186 168 175 287 227 215 39 100 209 266 171 47 6 182 157 25 21 67 140 85 286 24 194 271 290 280 214 15 299 170 149 279 165 148 239 268 55 113 217 32 282 117 37 241 288 265 188 147...
output:
272869279
result:
ok 1 number(s): "272869279"
Test #37:
score: 0
Accepted
time: 928ms
memory: 8088kb
input:
300 300 163 241 271 174 125 238 95 55 207 5 292 107 6 76 50 300 104 79 254 28 138 66 102 70 2 296 49 234 196 15 168 189 46 162 277 143 215 136 275 265 85 91 282 60 180 22 41 260 244 75 262 133 214 256 14 154 218 252 100 13 255 126 299 122 152 65 17 18 51 220 257 130 29 195 225 239 285 9 258 289 98 1...
output:
702049778
result:
ok 1 number(s): "702049778"
Test #38:
score: 0
Accepted
time: 925ms
memory: 7920kb
input:
300 300 165 195 265 60 126 160 105 208 21 82 55 204 107 236 29 282 183 75 224 235 125 198 223 145 217 156 158 192 292 161 59 276 58 124 47 48 93 185 269 130 281 120 108 229 278 290 215 285 226 174 287 83 225 139 264 113 32 39 177 169 136 129 89 184 121 277 78 299 92 134 123 97 194 159 24 3 141 297 1...
output:
868396096
result:
ok 1 number(s): "868396096"
Test #39:
score: 0
Accepted
time: 928ms
memory: 7884kb
input:
300 300 46 278 198 2 180 10 279 62 73 29 17 244 283 261 24 192 57 160 233 298 70 86 85 65 269 166 11 168 243 16 77 294 220 259 300 184 185 123 224 137 190 88 34 223 162 141 97 292 49 249 83 194 275 235 69 42 232 91 248 183 103 188 143 26 68 204 82 132 3 117 218 98 197 171 126 288 219 112 238 84 30 2...
output:
660719570
result:
ok 1 number(s): "660719570"
Test #40:
score: 0
Accepted
time: 927ms
memory: 7916kb
input:
300 300 102 69 149 57 213 123 232 47 111 251 180 43 247 220 249 84 1 126 25 100 104 201 270 17 258 241 182 35 248 263 187 59 219 197 88 290 280 3 54 16 93 199 178 36 82 45 273 48 215 50 284 83 233 195 244 66 112 224 103 238 78 169 49 210 95 295 292 10 261 156 42 236 203 286 125 298 79 161 9 38 193 2...
output:
893580842
result:
ok 1 number(s): "893580842"
Test #41:
score: 0
Accepted
time: 2ms
memory: 5800kb
input:
2 300 80 19 22 272 66 174 110 109 232 148 94 149 28 56 93 63 161 271 135 34 190 103 70 133 127 226 228 91 295 206 18 169 264 230 95 23 72 287 115 76 189 21 2 140 38 238 134 159 246 260 286 4 176 253 150 285 277 11 27 274 154 43 138 152 12 201 10 191 297 144 235 218 252 139 65 46 77 280 33 207 266 25...
output:
220243451
result:
ok 1 number(s): "220243451"
Test #42:
score: 0
Accepted
time: 4ms
memory: 5728kb
input:
300 2 2 1 1 2 2 1 2 1 2 1 1 2 2 1 1 2 1 2 1 2 1 2 1 2 1 2 2 1 1 2 1 2 2 1 1 2 2 1 1 2 1 2 1 2 2 1 1 2 1 2 1 2 2 1 1 2 2 1 2 1 2 1 2 1 1 2 2 1 2 1 1 2 1 2 1 2 2 1 1 2 2 1 2 1 2 1 1 2 2 1 2 1 1 2 2 1 2 1 1 2 1 2 2 1 2 1 2 1 2 1 2 1 1 2 1 2 2 1 2 1 2 1 1 2 2 1 1 2 2 1 1 2 1 2 1 2 2 1 1 2 1 2 2 1 2 1 2 ...
output:
62144746
result:
ok 1 number(s): "62144746"
Test #43:
score: 0
Accepted
time: 7ms
memory: 5944kb
input:
3 300 21 239 22 48 209 61 257 131 149 78 291 255 186 127 58 38 32 18 220 167 224 60 103 11 137 139 140 148 225 226 120 188 10 189 208 41 266 166 272 90 71 81 77 180 293 217 20 295 196 7 256 104 164 287 134 119 215 267 12 260 289 285 187 17 162 5 201 132 29 198 202 109 277 25 263 296 237 24 100 181 8...
output:
869129689
result:
ok 1 number(s): "869129689"
Test #44:
score: 0
Accepted
time: 6ms
memory: 4384kb
input:
300 3 2 3 1 3 2 1 3 2 1 2 1 3 2 1 3 2 3 1 2 3 1 3 2 1 2 3 1 3 1 2 3 2 1 2 1 3 3 2 1 1 2 3 1 3 2 3 2 1 3 1 2 3 2 1 3 2 1 3 1 2 1 2 3 1 2 3 3 1 2 2 3 1 2 1 3 1 2 3 2 1 3 3 2 1 3 2 1 1 2 3 3 1 2 2 1 3 1 3 2 3 1 2 3 2 1 2 1 3 2 3 1 1 2 3 1 3 2 2 1 3 1 2 3 3 2 1 2 3 1 2 3 1 1 3 2 3 1 2 1 2 3 2 1 3 3 2 1 ...
output:
911765757
result:
ok 1 number(s): "911765757"
Test #45:
score: 0
Accepted
time: 9ms
memory: 5936kb
input:
4 300 192 276 212 129 137 241 156 182 171 257 176 17 203 174 106 31 51 273 60 208 121 80 141 112 230 282 109 145 144 57 153 79 226 6 16 38 132 233 93 126 47 63 108 299 61 148 146 222 268 87 173 28 245 56 291 224 249 183 3 100 190 59 283 280 125 43 139 118 259 287 151 253 281 221 158 114 136 95 30 96...
output:
26585690
result:
ok 1 number(s): "26585690"
Test #46:
score: 0
Accepted
time: 6ms
memory: 5736kb
input:
300 4 2 1 4 3 1 4 2 3 3 2 1 4 1 2 3 4 3 2 1 4 3 2 1 4 3 1 4 2 2 4 3 1 3 4 1 2 2 4 3 1 3 2 4 1 3 2 4 1 1 3 4 2 3 1 4 2 2 1 3 4 2 4 1 3 2 4 3 1 2 3 4 1 4 2 1 3 1 3 2 4 1 3 4 2 2 3 4 1 2 3 1 4 3 4 2 1 3 1 2 4 3 2 4 1 3 4 1 2 1 3 4 2 3 4 2 1 4 2 1 3 1 2 4 3 3 4 1 2 1 2 3 4 2 3 4 1 1 4 3 2 3 2 4 1 2 4 3 ...
output:
336733248
result:
ok 1 number(s): "336733248"