五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

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

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

分享到微博請遵守國家法律
宜黄县| 陕西省| 沙湾县| 青冈县| 太白县| 临漳县| 蓬莱市| 龙川县| 湖州市| 黄大仙区| 邻水| 美姑县| 锡林浩特市| 高要市| 平江县| 华亭县| 新野县| 赤峰市| 芜湖市| 攀枝花市| 罗甸县| 房产| 绥滨县| 曲沃县| 武强县| 开封市| 博乐市| 疏附县| 乌鲁木齐县| 曲周县| 佛坪县| 万州区| 华安县| 阳原县| 无锡市| 九龙城区| 吉木萨尔县| 崇仁县| 潜山县| 奉贤区| 娱乐|