Skip to content
C

Find the Unique Element

Easyjavapythonccppjavascript

Every element in an array appears exactly twice except one element, which appears once. Find the element that appears only once.

Input Format

The first line contains an integer N (N is odd). The second line contains N space-separated integers.

Output Format

Print the element that appears exactly once.

Input (stdin)

Output

Run your code to see output here...