Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
统计指定字符
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 65, Accepted users: 37
Problem 10128 : No special judgement
Problem description
  统计在字符串a中,以下指定字符出现的次数,并存到b数组中,其中:字符'+'出现的次数存到b[0]中,字符'-'出现的次数存到b[1], 字符'*'出现的次数存到b[2],字符'/'出现的次数存到b[3], 字符'&'出现的次数存到b[4],其它字符出现的次数存到b[5]中。

Input
  输入字符串, 以不输入任何字符直接回车作为输入结束。

Output
  输出指定字符出现的次数。数字间用空格分隔,行尾有一空格。

Sample Input
-+*1-a/&b
Sample Output
1 2 1 1 1 3
Problem Source
  Teacher WWS

Submit   Discuss   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2109 today,12073158 total, since 2010-05-07