|
|||
Eb Alto Saxophone PlayerDo you like saxophone? I have an Eb Alto Saxophone, shown below.
My fingers move a lot when playing some music, and I'm quite interested in how many times
each finger presses the button. Assume that the music is composed of only 14 kinds of note.
They are: C D E F G A B in one octave and C D E F G A B in a higher octave. We use
(Note that each finger controls a specified button and different fingers control different buttons.) Write a program to help count the number of times each finger presses the button. A finger presses a button if it is needed in a note but not used in the last note. Also, if it is the first note, every finger required presses the button. Input Specification
The first line of the input is a single integer t
(1 ≤ t ≤ 1000), indicating the number of test cases.
For each case, there is only one line containing the song. The only allowed characters are
{“ Output SpecificationFor each test case, print 10 numbers indicating the number of presses for each finger. The numbers should be separated by single spaces. Sample Input
Output for Sample Input
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |