5649: 字符串中第一个唯一字符

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:24 Solved:28

Description

给定一个只有小写字母的字符串,找到它的第一个不重复的字符,并输出它的位置。如果不存在,则输出 -1。

Input

一个字符串

Output

一个数字

Sample Input Copy

goodafternoon

Sample Output Copy

0

HINT

hash