Problem1595--在字符串中查找第一次出现的字符(栈和队列)

1595: 在字符串中查找第一次出现的字符(栈和队列)

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 5  Solved: 5
[Submit] [Status] [Web Board] [Creator:]

Description

题目:在一个字符串中找到第一个只出现一次的字符。如输入abaccdeff,则输出b。

Input

输入:

abaccdeff

Output

输出:

b

Sample Input Copy

believable

Sample Output Copy

i

Source/Category