| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 126 | 95 | 81 | 77.885% |
The animals are conspiring again. The cows are mooing very strangely and you’re certain of it. Your theory is that the length of each “MM” sound and the length of the “OO” sound can be translated to hexadecimal values and then converted to ascii. Create a program to translate cowspeak to English so you can find out what they’re up to.
The first line will contain a single integer n that indicates the number of data sets that follow. Each data set will consist of one line containing many space separated strings representing the cows’ moos.
For each test case, output the decoded cowspeak
2 MMMMOOOOOOOOOOOOO MMMMOOOOOOOOOOOOOOO MMMMOOOOOOOOOOOOOOO MMMMMMOOOOOOOO MMMMMMOOOOOOOOO
MOO hi