<PREV Problem:
NEXT>
Solved by 2078 users: ...
 < 
 < 
 < 
 < 
 < 
 < 
 < 
 < 
 < 
 < 

Odd number

Time limit = 5 seconds

Memory limit = 2000 K

Input First line contains positive integer N < 500000 then, N positive integers follow (delimited with space) each less than 1 000 000.

Output In input sequence only one number X is repeated odd times. Others have even number of occurences. You should output X.

Input#1
9
3 1 2 2 17 1 3 17 3
Output#1
3
Input#2
5
12 13 14 13 12
Output#2
14

Author:

<PREV | Problem set | Search related messages | NEXT>


© acm.mipt DevGroup
The page was generated in 180ms

SW soft NIX
ID = 54.162.181.75