Time Limit: 2000ms, Special Time Limit:5000ms,Memory Limit:65536KB |
Total submit users: 21, Accepted users:19 |
Problem 13806 : No special judgement |
Problem description |
Proper typing is becoming an essential part of culture. If you are still not using all ten fingers for typing, youhave to re-learn typing ? then you will type faster and feel more comfortable and enjoyable. There are a lot of web sites teaching proper typing. The following image depicts the basic principle; the keysneeded to press with the same finger are of the same color. The yellow keys need to be pressed with the pinky,the blue ones with the ring finger, the green ones with the middle finger and the red ones with the index finger.Naturally, the left hand presses the left side of the keyboard (starting with keys 5, T, G, B to the left), the righthand presses the right side (starting with keys 6, Y, H, N to the right). Thumbs are responsible for space. Your task is to output how many times each finger, excluding thumbs, participated in typing the given stringproperly. |
Input |
The first and only line of input contains of a string consisting of at least one and at most fifty characters. Thestring doesn’t contain whitespaces and consists only of characters depicted on the image above. |
Output |
The output must consist of eight lines, in each line one integer denoting the number of presses of each finger,excluding thumbs, observed from left to right. |
Sample Input |
Sample Input 1 AON=BOO; Sample Input 2 PRINT’NY’[NASLA] Sample Input 3 VIDI,KO,JE,DOSA |
Sample Output |
Sample Output 1 1 0 0 1 1 0 3 2 Sample Output 2 2 1 0 2 4 1 1 5 Sample Output 3 1 1 3 1 1 6 2 0 |
Problem Source |
COCI 2014/2015 contest 3
解题思路
这个该怎么表示啊 我好不容易弄出来一个',结果怎么会是这样呢
这个时候。。。。。请使用转义字符。。。。。。 \'
代码展示
卡了好久这道题。。。。。另外提示一下。。。。好像这道题的output的那个单引号打错了。。。。。。 |
STROJOPIS
最新推荐文章于 2023-01-08 14:11:20 发布