#CCBCHBAHAI0000161. Phát hiện gián điệp (Spy Detected!)
Phát hiện gián điệp (Spy Detected!)
Spy Detected!
Source: Codeforces
Version: Phuoc Hung OJ Extended
Problem
Given an array of positive integers. One value occurs exactly times and one different value occurs exactly once. Find the 1-based position of the unique different element.
Input
- Line 1: integer .
- Line 2: integers .
Output
Print the required 1-based position.
Subtask
Subtask 1 (100 points): ; ; exactly one value differs from all others.
Example
Input
4
11 13 11 11
Output
2
Explanation
occurs three times while occurs once at position .