Previously encountered numbers
Very easy
Execution time limit is 2 seconds
Runtime memory usage limit is 64 megabytes
The condition is in the title.
The approach to solving this problem depends on the constraints, which, for some reason, are not specified here. Or are they?
Input
The input consists of a single line containing a sequence of numbers separated by spaces.
Output
For each number, print YES (on a separate line) if the number has appeared earlier in the sequence, or NO if it has not.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 35%