• [1174] Calculate the Numbered Musical Notation

  • 时间限制: 1000 ms 内存限制: 65535 K
  • 问题描述
  • Maybe you know there's a game called the Keyboard Piano.
    It means you can play the keyboard to replace playing piano.
    To simplify this problem, we set a key K as 1 (do). And we give you one "letter nusical notation", you have to calculate out the numbered musical notation with at most 20 notation per line.
    You should consider that (K - 1) is 7 and (K + 1) is 2.
                                        .
  • 输入
  • This problem contains several cases.
    The first line of each line is a uppercase letter, indicates the "do".
    Then follows a line of string with only uppercase letter. The string is no longer than 2000.
  • 输出
  • For each case, you should output the numbered musical notation with at most 20 notation per line.
    There's a single line of string "--------------------" between each case and there's a blank line between each line of the same case.
    For each case, the height of each note should adapt this case's global height. You should leave a space when there's no ".".
  • 样例输入
  • G
    ACNBUTOJCOM
    A
    ABCDEFGHIJKLMNOPQRSTUVWXYZ
    
  • 样例输出
  •     .      
      . ...  . 
    24131724427
    .. .    .  
    --------------------
                        
                  ......
           .............
    12345671234567123456
    
     .....
    ......
    ......
    712345
    
  • 提示
  • 来源
  • XadillaX
  • 操作

显示春菜