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: 306, Accepted users: 276
Problem 10473 : No special judgement
Problem description
  输入一个字符串,假定字符串的长度小于等于256,分别统计出每一种英文字符的个数,不区分大小写。

Input
  第一行是一个整数T,表示有T组数据。以下T行,每行是一个字符串。

Output
  对于每组测试数据,先输出“Case #:”(#为序号,从1起),换行,按字母表顺序输出结果在一行上。数据间用一个空格分隔,行最后一个数据后面无空格。

Sample Input
2
ab,cd345!.,/
abcdefghijklmnopqrstuvwxyz
Sample Output
Case 1:
1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Case 2:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Submit   Clarifications   Judge Status  Problems  Ranklist 

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