Problem1685--字符串中的第一个唯一字符

1685: 字符串中的第一个唯一字符

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

给定一个字符串 s ,找到 它的第一个不重复的字符,并返回它的索引 。如果不存在,则返回 -1 。

Input

输入一串字符s


s只包含小写字母

Output

输出一个整数

Sample Input Copy

leetcode

Sample Output Copy

0

Source/Category

 字符串