• [A] A Simple Problem

  • 时间限制: 1000 ms 内存限制: 65535 K
  • 问题描述
  • Give you a string composed by char 'A'-'Z' and ' '. Please print the number of each character('A'-'Z') with char '*', see “Sample Output” for more details.
  • 输入
  • Fisrt line input one integer N (1 <= N < 100) . Then there are N strings, each in a single line.
  • 输出
  • For each case, print the number of each character from A to Z, note there is a ' 'after each ‘:’.
  • 样例输入
  • 2
    THIS IS A VERY SIMPLE PROBLEM
    NINGBO UNIVERSITY OF TECHNOLOGY ONLINE JUDGE SYSTEM
  • 样例输出
  • A: *
    B: *
    C: 
    D: 
    E: ***
    F: 
    G: 
    H: *
    I: ***
    J: 
    K: 
    L: **
    M: **
    N: 
    O: *
    P: **
    Q: 
    R: **
    S: ***
    T: *
    U: 
    V: *
    W: 
    X: 
    Y: *
    Z: 
    
    A: 
    B: *
    C: *
    D: *
    E: *****
    F: *
    G: ***
    H: *
    I: ****
    J: *
    K: 
    L: **
    M: *
    N: ******
    O: *****
    P: 
    Q: 
    R: *
    S: ***
    T: ***
    U: **
    V: *
    W: 
    X: 
    Y: ***
    Z: 
    
  • 提示
  • 来源
  • Minary
  • 操作

显示春菜