Problem F
Basic Programming 2
You think you can code?
This problem will test you on various basic programming
techniques.
You are given two integers
Based on the value of
|
Action Needed |
|
Print “Yes” if there are
two integers |
or “No” otherwise (without the quotes) |
|
|
Print “Unique” if all
integers in |
or print “Contains duplicate” otherwise (without the quotes) |
|
|
Find and print the integer that appears
|
or print |
|
|
Find and print the median integer of |
or print both median integers of |
|
|
Print integers in |
(print a single space between two integers) |
Input
The first line of the input contains an integer
The second line of the input contains
Output
For each test case, output the required answer based on the
value of
Scoring
There are
All
Each hidden test case worth
Sample Input 1 | Sample Output 1 |
---|---|
7 1 1 7770 3 4 5 6 7 |
Yes |
Sample Input 2 | Sample Output 2 |
---|---|
7 2 1 2 3 4 5 6 7 |
Unique |
Sample Input 3 | Sample Output 3 |
---|---|
7 3 1 1 1 1 2 2 2 |
1 |
Sample Input 4 | Sample Output 4 |
---|---|
8 4 8 1 4 3 6 7 5 2 |
4 5 |
Sample Input 5 | Sample Output 5 |
---|---|
7 5 210 999 1000 543 321 99 777 |
210 321 543 777 999 |