13139: 考试一 判断字符串中的字符
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:2
Solved:0
Description
1.输入一个字符串str和一个字符ch,判断str中是否存在该字符;如果存在输出在该字符在串str中出现的次数和位置;
Input
hello world!
h
Output
0
1
Sample Input Copy
hello world!
l
Sample Output Copy
2 3 9
3