-->
当前位置:首页 > 题库

PROGRAMMING:Ring the stupid bell

Luz5年前 (2021-05-10)题库538
There is a guy who calls himself "Big Ben V" on Weibo. He rings the bell every day to urge the code farmers to cherish their bodies and go to bed early. In order to increase the interest of ringing the bell, a few ancient poems will be altered. The way to change it is to search for the ancient poems with "ong" rhyme on the Internet and change the three words at the end of the sentence into "ring stupid bell". For example, Li He, a poet of the Tang Dynasty, has a famous saying: "when you look for a passage and extract a sentence, you can carve a bug and hang a jade bow on the curtain when the moon is in the morning.". So the poem was changed to "looking for chapters and extracting sentences, old carving insects, the moon as a curtain ringing stupid bell".
Now I'm going to give you a lot of ancient poems and sentences. I ask you to write a program to automatically change the sentence with "ong" rhyme into "ring stupid bell".
###Input format:
Input first gives a positive integer n of no more than 20 on the first line. Then n lines, each line with Chinese Pinyin gives an ancient poem, divided into two half sentences, with a comma ',', separated by a period '. The Pinyin of two adjacent characters is separated by a space. The title ensures that the Pinyin of each word does not exceed 6 characters, the total length of each line of characters does not exceed 100, and the second half of the poem has at least 3 words.
###Output format:
For each line of verse, judge whether it has "ong" rhyme. That is to say, the words at the end of the two sentences all end with "ong". If it is pressed this rhyme, it will be output according to the question surface method, and the output format is the same as the input; Otherwise, output "skipped", that is, skip this sentence.
###Input example:
```in
five
xun zhang zhai ju lao diao chong, xiao yue dang lian gua yu gong.
tian sheng wo cai bi you yong, qian jin san jin huan fu lai.
xue zhui rou zhi leng wei rong, an xiao chen jing shu wei long.
zuo ye xing chen zuo ye feng, hua lou xi pan gui tang dong.
ren xian gui hua luo, ye jing chun shan kong.
```
###Output example:
```out
xun zhang zhai ju lao diao chong, xiao yue dang lian qiao ben zhong.
Skipped
xue zhui rou zhi leng wei rong, an xiao chen jing qiao ben zhong.
Skipped
Skipped
```







answer:If there is no answer, please comment