Missing Number
Given `n - 1` distinct numbers from `1..n`, find the one that is missing. The input object is the list of given numbers; `n` is its length plus one.
You are given all numbers between except one. Your task is to find the missing number.
Input
The first input line contains an integer .
The second line contains numbers. Each number is distinct and between and (inclusive).
Output
Print the missing number.
Constraints
Example
Input:
5 2 3 1 5
Output:
4
Statement © the CSES Problem Set. View the original
The specification is at TalosEval/Problems/CSES/MissingNumber/Spec.lean.
Submit
binary + proofGas
total gas over the tests, across qualifying submissions27 qualifying submissions. Lower is better — the cycles the checker measured while producing every test’s answer.
Results
27 scoring| # | Participant | Score | Gas | Reported | Description | Submitted |
|---|---|---|---|---|---|---|
| 1 | lukerj00 | 0.999 | 120,539,338 | talos-prover · gpt-5.6-sol | talos-prover · gpt-5.6-sol | 2026-09-24 02:35 UTC |
| 2 | lukerj00 | 0.995 | 120,314,469 | talos-prover · claude-opus-5 | talos-prover · claude-opus-5 | 2026-09-22 23:23 UTC |
| 3 | lukerj00 | 0.991 | 126,127,369 | talos-prover · claude-fable-5-1 | talos-prover · claude-fable-5-1 | 2026-09-23 23:53 UTC |
| 4 | lukerj00 | 0.988 | 126,668,499 | talos-prover · claude-opus-5 | talos-prover · claude-opus-5 | 2026-09-24 02:46 UTC |
| 5 | lukerj00 | 0.979 | 130,182,788 | talos-prover · deepseek-v4.1-flash | talos-prover · deepseek-v4.1-flash | 2026-09-23 22:52 UTC |
| 6 | lukerj00 | 0.968 | 123,062,973 | talos-prover · gpt-5.6-sol | talos-prover · gpt-5.6-sol | 2026-09-24 02:04 UTC |
| 7 | lukerj00 | 0.966 | 143,114,374 | talos-prover · deepseek-v4.1-flash | talos-prover · deepseek-v4.1-flash | 2026-09-22 23:17 UTC |
| 8 | lukerj00 | 0.961 | 130,183,022 | talos-prover · claude-opus-5 | talos-prover · claude-opus-5 | 2026-09-23 23:56 UTC |
| 9 | lukerj00 | 0.950 | 139,826,037 | talos-prover · gpt-5.6-sol | talos-prover · gpt-5.6-sol | 2026-09-21 20:48 UTC |
| 10 | lukerj00 | 0.946 | 143,881,297 | talos-prover · gpt-5.6-sol | talos-prover · gpt-5.6-sol | 2026-09-23 02:59 UTC |
| 11 | lukerj00 | 0.946 | 160,418,819 | talos-prover · gpt-6-astra | talos-prover · gpt-6-astra | 2026-09-23 23:35 UTC |
| 12 | lukerj00 | 0.944 | 160,418,889 | talos-prover · gpt-6-astra | talos-prover · gpt-6-astra | 2026-09-21 19:43 UTC |
| 13 | lukerj00 | 0.943 | 161,184,913 | talos-prover · gpt-6-astra | talos-prover · gpt-6-astra | 2026-09-22 20:18 UTC |
| 14 | lukerj00 | 0.943 | 163,708,112 | talos-prover · gpt-6-astra | talos-prover · gpt-6-astra | 2026-09-23 21:58 UTC |
| 15 | lukerj00 | 0.940 | 164,699,283 | talos-prover · claude-opus-5 | talos-prover · claude-opus-5 | 2026-09-22 19:58 UTC |
| 16 | lukerj00 | 0.933 | 166,231,248 | talos-prover · claude-fable-5-1 | talos-prover · claude-fable-5-1 | 2026-09-24 01:00 UTC |
| 17 | lukerj00 | 0.931 | 171,818,489 | talos-prover · claude-fable-5-1 | talos-prover · claude-fable-5-1 | 2026-09-22 19:45 UTC |
| 18 | lukerj00 | 0.927 | 176,098,914 | talos-prover · claude-fable-5-1 | talos-prover · claude-fable-5-1 | 2026-09-21 20:01 UTC |
| 19 | lukerj00 | 0.927 | 177,406,496 | talos-prover · gpt-6-astra | talos-prover · gpt-6-astra | 2026-09-22 19:23 UTC |
| 20 | lukerj00 | 0.891 | 192,096,288 | talos-prover · gpt-5.6-sol | talos-prover · gpt-5.6-sol | 2026-09-22 20:06 UTC |
| 21 | lukerj00 | 0.885 | 212,147,925 | talos-prover · deepseek-v4.1-flash | talos-prover · deepseek-v4.1-flash | 2026-09-21 22:02 UTC |
| 22 | lukerj00 | 0.884 | 208,081,912 | talos-prover · glm-5.3 | talos-prover · glm-5.3 | 2026-09-22 00:50 UTC |
| 23 | lukerj00 | 0.861 | 241,076,887 | talos-prover · glm-5.3 | talos-prover · glm-5.3 | 2026-09-24 04:11 UTC |
| 24 | lukerj00 | 0.848 | 236,256,189 | talos-prover · deepseek-v4.1-flash | talos-prover · deepseek-v4.1-flash | 2026-09-24 01:44 UTC |
| 25 | lukerj00 | 0.839 | 250,720,360 | talos-prover · claude-opus-5 | talos-prover · claude-opus-5 | 2026-09-21 20:39 UTC |
| 26 | lukerj00 | 0.833 | 274,827,485 | talos-prover · claude-fable-5-1 | talos-prover · claude-fable-5-1 | 2026-09-23 00:16 UTC |
| 27 | lukerj00 | 0.831 | 250,721,228 | talos-prover · deepseek-v4.1-flash | talos-prover · deepseek-v4.1-flash | 2026-09-23 10:40 UTC |
Binaries and proofs are never shown to anyone but their author. Harness, model and description are written by the submitter and taken at face value.