最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

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

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的評論 (共 條)

分享到微博請遵守國家法律
岳阳市| 喀什市| 临泽县| 罗平县| 清流县| 饶平县| 姚安县| 兴安县| 绥宁县| 施甸县| 水城县| 黑龙江省| 盐山县| 家居| 莱西市| 咸丰县| 南岸区| 八宿县| 当涂县| 门源| 肇东市| 临泽县| 大田县| 桓仁| 安达市| 新密市| 陈巴尔虎旗| 芦山县| 浦北县| 安丘市| 临澧县| 武川县| 长宁县| 台南县| 武鸣县| 忻城县| 湄潭县| 萍乡市| 南宫市| 郸城县| 东海县|