Find The Missing Avenger

0

0 votes
Problem

Avengers are going to fight Thanos. They have to report to UN base according to Socovia records.Each Avenger has been given a serial Id for identification. Since Civil War is going on, some Avengers have decided not to report to the base. There are N number of Heros in the Avengers with id 1 to N. find the missing avenger.

 

INPUT :

The First Line contains N number of Heroes

 N - 1 Space Separated id of each Hero

OUTPUT :

Id of missing Hero

constraints

1<=N<=100000

Time Limit: 1
Memory Limit: 256
Source Limit:
Explanation

id 1 is missing

Editor Image

?