国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網 會員登陸 & 注冊

CF 440A - Forgotten Episode

2023-07-07 16:19 作者:您是打尖兒還是住店呢  | 我要投稿

Polycarpus adores TV series. Right now he is ready to finish watching a season of a popular sitcom "Graph Theory". In total, the season has?n?episodes, numbered with integers from?1?to?n.

Polycarpus watches episodes not one by one but in a random order. He has already watched all the episodes except for one. Which episode has Polycaprus forgotten to watch?

Input

The first line of the input contains integer?n?(2?≤?n?≤?100000)?— the number of episodes in a season. Assume that the episodes are numbered by integers from?1?to?n.

The second line contains?n?-?1?integer?a1,?a2,?...,?an?(1?≤?ai?≤?n)?— the numbers of episodes that Polycarpus has watched. All values of?ai?are distinct.

Output

Print the number of the episode that Polycarpus hasn't watched.

Examples

input

Copy

10
3 8 10 1 7 9 6 5 2

output

Copy

4

------------------------------------------------------

easy 題目,直接用數組判斷哪個數字沒有出現(xiàn)過即可,然后輸出。

下面是代碼:


CF 440A - Forgotten Episode的評論 (共 條)

分享到微博請遵守國家法律
定州市| 咸宁市| 永仁县| 马公市| 陆川县| 枣强县| 静海县| 大连市| 麟游县| 固原市| 潮州市| 靖宇县| 海晏县| 安化县| 阜平县| 阿克苏市| 保靖县| 清水河县| 凭祥市| 江源县| 铜陵市| 青铜峡市| 高青县| 宕昌县| 邓州市| 双江| 金门县| 宣威市| 高邑县| 芦溪县| 沐川县| 工布江达县| 永泰县| 聊城市| 新乐市| 黑河市| 上高县| 宽城| 永仁县| 青海省| 思茅市|