游客 Signup | Login
中文 | En

3398 - 考试一 判断字符串中的字符

通过次数

0

提交次数

0

Time Limit : 1 秒 Memory Limit : 128 MB

1.输入一个字符串str和一个字符ch,判断str中是否存在该字符;如果存在输出在该字符在串str中出现的次数和位置;

Input

hello world!

h

Output

1

Examples

Input Format

hello world!
l

Output Format

2 3 9 
3