CT27132

Nina's Missing Mark Ledger

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

The council of the saffron fields of Marigold Row pays by the answer, and Nina intends to earn it. First: the full register of barrels. Task: The array contains n-1 distinct integers chosen from 1..n with exactly one missing. Print the missing integer. Input format: First line: n. Second line: n-1 space-separated distinct integers in [1,n]. Output format: Print the missing integer. Constraints: 2 <= n <= 642; values are distinct in [1,n].

Example 1:

Input: 273 36 41 201 244 143 90 184 146 39 1 91 12 82 211 123 3 199 75 217 101 137 163 152 167 133 227 180 191 37 132 66 260 120 165 174 234 259 62 47 147 20 214 189 127 273 241 236 212 17 65 30 216 51 117 183 170 242 136 86 173 138 10 177 109 9 255 186 169 94 149 213 128 230 235 76 166 220 171 26 97 272 181 140 190 16 223 202 263 54 124 258 158 46 153 31 269 81 205 44 231 19 96 106 22 15 256 95 237 50 265 73 49 68 159 35 249 225 4 157 252 175 21 42 131 233 113 100 204 197 168 5 34 193 85 38 92 172 23 125 187 114 130 268 24 139 195 45 239 33 222 250 232 219 207 178 99 151 67 55 102 182 135 192 89 111 248 121 238 59 154 247 179 79 8 141 209 200 155 60 150 262 196 112 104 63 110 161 87 271 203 208 18 240 188 176 57 98 144 13 243 224 116 162 264 261 118 122 11 88 270 14 105 48 6 74 84 71 28 142 32 257 78 77 61 53 185 107 246 254 206 80 251 103 267 245 70 194 160 253 215 228 83 218 58 198 134 40 226 129 56 29 52 266 64 43 25 2 210 7 156 229 108 69 27 115 145 148 221 72 164 126 119
Output: 93

Example 2:

Input: 460 116 358 424 28 379 186 247 235 380 96 157 50 211 13 351 201 274 279 436 110 136 344 278 297 175 148 155 163 194 430 321 120 307 411 234 251 193 71 80 249 361 387 386 459 146 31 382 320 35 220 308 216 259 312 142 317 243 225 437 354 366 38 440 177 339 42 300 310 33 419 384 368 67 326 87 422 158 26 48 334 439 402 412 124 53 200 451 406 389 409 318 37 452 174 376 108 219 169 426 327 56 428 4 347 85 66 114 388 5 19 106 332 91 113 152 138 167 198 417 222 191 203 75 97 403 283 55 396 264 276 65 125 10 290 335 337 185 287 435 404 233 12 458 410 244 232 323 210 212 133 311 100 356 79 145 230 93 156 178 288 15 352 51 14 184 333 63 1 393 377 162 213 416 9 134 206 8 414 164 342 60 296 421 70 432 183 460 407 77 202 295 140 256 224 181 445 7 348 315 192 101 448 40 420 316 400 107 357 137 370 123 309 149 338 305 418 135 385 446 21 58 2 401 76 27 268 325 429 139 374 275 291 399 153 121 253 143 141 331 363 365 168 398 242 132 360 64 172 30 349 197 83 127 159 34 41 117 240 293 24 170 11 214 265 390 350 248 353 289 236 241 267 258 209 260 90 269 6 182 88 392 427 299 415 328 413 319 431 45 32 266 391 285 119 3 215 322 343 383 89 302 345 73 324 78 303 261 44 165 151 250 190 103 262 25 115 205 223 408 118 59 329 52 378 292 231 433 188 49 443 254 84 372 434 438 218 306 355 395 147 341 171 207 221 450 456 161 112 166 369 217 36 29 74 228 102 246 105 131 144 86 381 226 442 176 94 280 18 394 195 204 99 257 273 128 263 272 199 375 227 441 23 346 68 373 82 69 122 336 364 98 294 61 447 72 282 457 109 298 454 405 179 104 16 453 444 150 187 196 245 92 330 20 47 238 208 239 57 359 126 22 301 281 62 367 313 252 255 46 111 423 455 425 270 189 304 39 284 449 54 43 340 397 277 17 160 180 95 362 237 81 173 314 286 271 129 154 229 371
Output: 130

Example 3:

Input: 9 3 7 9 8 2 1 6 5
Output: 4

Constraints:

2 <= n <= 642; values are distinct in [1,n].

Loading...
Test Cases:No test cases
No test cases available.