Epoka Science Olympiad 2017 - 11th Grade |
Start: May.06.2017 at 10:00:00 AM
Finish: May.06.2017 at 12:30:00 PM
The contest is finished!
• Contest scoreboard
|
Feedback | If you notice incorrect translations in Contester, please let author know.
|
|
Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
First Unique Character
Question:
Write a program to find the first occurrence of a unique character in a string.
For example, given a string: "aBcBcaAbBaAdAc", b and d are unique occurrences and b is the first one.
Input specification:
You will be given one line of string with at most 300 chars.
The string contains only letters and no special char.
Output specification:
Show the first unique character in the string.
If there is no unique character in the string,
show the message "No unique char found".
Sample Input |
Sample Output |
uylerlluAjkH
hulEdjuJklhe
wewe
|
y
E
No unique char found
|
Для отправки решений необходимо выполнить вход.
|