Repeated numbers
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Enter numbers from 0 to 9 in different order, one in each line. You must enter the numbers till the same number repeats itself for the first time.
####Incoming data
Each line contains one of the numbers 0, 1, 2, ..., 9.
####Output data
Displays the number of reads before the first repetition.
Examples
Input #1
Answer #1
Note
The solution of the problem can be modeled by the behavior of "Codey Rocky", which recognizes the colors of the cards marked with numbers 0..9.
Submissions 954
Acceptance rate 44%