問題一覧 > 通常問題

No.481 1 to 10

レベル : / AI推定難易度 : 75 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 1216
作問者 : nmnmnmnmnmnmnm / テスター : tatuyan_edson
お気に入りにしたユーザー ProblemId : 1358 / 自分の提出
問題文最終更新日: 2026-06-27 16:17:26
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 156 (順位表) の他の問題:

Problem Statement

A-kun tried to write the numbers from 1 to 10 from left to right.
However, A-kun noticed that he had written only 9 numbers.
It seems that he failed to write one of the numbers he should have written.
What is the number that A-kun did not write?

Input

$B_1$ $B_2$ $\dots$ $B_9$ 

Exactly 9 numbers are given as input.
$B_i$ is the $i$-th integer from the left. $1 \le B_i \le 10$.
All values of $B_i$ are distinct and are in ascending order from left to right.

Output

Output the answer on one line, followed by a newline at the end.

Sample

Sample 1
Input
1 2 4 5 6 7 8 9 10
Output
3

A-kun did not write 3.

Sample 2
Input
1 2 3 4 5 6 7 9 10
Output
8

A-kun did not write 8.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。