1220 -- 青蛙过河
2015-09-07 16:52
232 查看
青蛙过河
Time Limit:1000MS Memory Limit:65536K
Total Submit:120 Accepted:27
Description
一群青蛙在河边,他们想过河。可是他们喜欢表演啊,想边唱歌边过河。
这首歌大家都会唱啊:
1 frog has 1 mouth, 2 eyes and 4 legs, plop dives into the water.
2 frogs have 2 mouths, 4 eyes and 8 legs, plop plop dive into the water.
3 frogs have 3 mouths, 6 eyes and 12 legs, plop plop plop dive into the water.
……
究竟应该怎么唱呢?我们就来研究一下。
现在我们看到了n只青蛙,我们来猜猜他们唱歌的歌词是什么。
Input
行1:一个正整数n(1≤n≤100),代表青蛙的个数
Output
行1:青蛙过河的歌词。格式为:
W frog(s) have(has) X mouth(s), Y eye(s) and Z leg(s), (plop…plop) dive(s) into the water .
注意括号不是输出内容。W、X、Y、Z分别代表青蛙个数,嘴巴个数,眼睛个数,腿个数。然后有N个plop(扑通声)。任何单词(包括数字和符号)之间都是由一个空格分开的,别在这里绊住了)。注意个数为1的时候要用单数形式。
Sample Input
Sample Output
Source
Time Limit:1000MS Memory Limit:65536K
Total Submit:120 Accepted:27
Description
一群青蛙在河边,他们想过河。可是他们喜欢表演啊,想边唱歌边过河。
这首歌大家都会唱啊:
1 frog has 1 mouth, 2 eyes and 4 legs, plop dives into the water.
2 frogs have 2 mouths, 4 eyes and 8 legs, plop plop dive into the water.
3 frogs have 3 mouths, 6 eyes and 12 legs, plop plop plop dive into the water.
……
究竟应该怎么唱呢?我们就来研究一下。
现在我们看到了n只青蛙,我们来猜猜他们唱歌的歌词是什么。
Input
行1:一个正整数n(1≤n≤100),代表青蛙的个数
Output
行1:青蛙过河的歌词。格式为:
W frog(s) have(has) X mouth(s), Y eye(s) and Z leg(s), (plop…plop) dive(s) into the water .
注意括号不是输出内容。W、X、Y、Z分别代表青蛙个数,嘴巴个数,眼睛个数,腿个数。然后有N个plop(扑通声)。任何单词(包括数字和符号)之间都是由一个空格分开的,别在这里绊住了)。注意个数为1的时候要用单数形式。
Sample Input
1
Sample Output
1 frog has 1 mouth, 2 eyes and 4 legs, plop dives into the water.
Source
相关文章推荐
- 利用ggplot画分组柱状图的方法
- Android新项目上传
- 1.4 MFC控件设置
- 关于navigationBar.leftBarItem按钮点击范围太大的问题
- 如何让一个DIV浮动在另一个DIV上面
- Mutillidae在kali linux上的安装
- 已知局域网IP地址,如何查看mac
- 桌面支持--outlook.com怎么设置pop3接收邮件
- CSDN第一篇
- *p++和*++p的区别
- URLClassLoader源码笔记
- Unity3D: NGUI自定义Atlas,Font
- 1219 -- 扑克牌
- 1218 -- 高精度加法
- 学习vagrant
- 1.3 对话框透明度
- JNI完全手册
- Windows下编译Caffe并编译Matlab接口
- Java____SpringMVC教学资源(坑)
- 桌面支持-设置adobe为默认pdf阅读软件方式