NC14745 Hungry!

news/2024/12/23 7:44:57/

题目描述

     XzzF is in English class, His teacher told them a story:

    At noon the rush hour had passed. There were few guests in the snack bar. It was not crowded.

    When the boss was about to take a break to read a newspaper, in came an old lady and a little boy.   

     “How much money is a bowl of beef soup?” the grandma sat down, counted the money in her purse and ordered a bowl of beef soup. The grandma pushed the bowl to the little boy, who swallowed  his saliva , looking at his grandma and saying, "Grandma, did you really have lunch?" "Of course." His grandma chewed  a piece of radish  slowly. 

    Very quickly, the little boy ate up the meal.Seeing this. the boss went over to them and said, "Old lady, congratulations, you are lucky to have the free food, for you are our 100th guest."Afterwards, over a month or more, one day, the small boy squatted  across the snack bar, where he seemed to be counting something, which shocked the boss when he happened to look out office window.When the small boy saw a guest walk into the snack bar, he would put a small stone into the circle he drew, but the lunch time had almost passed, the small stones he put into the circle were hardly 50.The boss was quite worried and called up all his old guests. 

    The guests started coming one after another."81, 82, 83… " the small boy counted faster and faster. At last, when the 99th small stone was put into the circle, the little boy hurried to pull his grandma's hand and went into the snack bar. "Grandma, this time it's on me," the little boy said proudly. The grandma who had become the real 100th guest was served a bowl of beef soup by her grandson. As his grandma as before, the little boy chewed a piece of radish in his mouth.

    oh ! hungry ! This story is useless. You just need to guess the meaning of this problem. (- . -)

输入描述:

The input will be multiple tests, and each line will contain an integer N (1 <= N <= 20).

输出描述:

Just observe the example.

示例1

输入

2
3

输出

gu...gu...
The story is so boring. And I am so hungry!
gu...gu...gu...
The story is so boring. And I am so hungry!

说明

How clear the example !
#include<bits/stdc++.h>
using namespace std;
long long n;
int main()
{while(cin>>n){for(int i=0;i<n;i++){cout<<"gu...";}cout<<endl;cout<<"The story is so boring. And I am so hungry!"<<endl;}system("pause");return 0;
}

PS:做过的最逗的题目了hhh


http://www.ppmy.cn/news/124687.html

相关文章

HDU-4745-Two Rabbits

HDU-4745-Two Rabbits 传送门 这一道题是区间dp.最长回文子序列。 题目大意&#xff1a;有两只兔子。一个只往顺时针方向跳。一个只往逆时针方向跳。这两只兔子每次跳的石头的重量必须相同。 所以很明显啦~有关于回文串的 当初思考的时候想把前面n-1个数直接放在n的后面。。…

si4745 FM-AM-SW 音量控制芯片 驱动详解

在论坛上看到有人发这个dsp 芯片&#xff0c;仔细看了下&#xff0c;发现功能正合我意&#xff0c;网上能找到的资料&#xff08;源码&#xff09;不多 软件环境&#xff1a;linux4.1.36 arm-linux-gcc 4.3.2 实现功能&#xff1a;自动搜台&#xff0c;上一台&#xff0c; 下一…

Acer4745G笔记本蓝牙驱动安装

Acer4745G笔记本装win7时已自动安装上了Atheros无线网卡驱动&#xff0c;并且能正常上网&#xff0c; 在此基础上想安装蓝牙驱动&#xff0c;用来连接一个蓝牙耳机。安装过程记录如下&#xff1a; 1、到Acer官网按笔记本型号下载Launch Manager并安装。 这个软件的作用是切…

时间基础概念及Linux中的时间函数

时间基础概念及Linux中的时间函数 时间相关概念GMT 时间UTC 时间时区 Time Zone夏令时 DST本地时间 localtime Linux 系统中的时间时钟基础概念系统节拍数 jiffiesLinux系统查看时间及配置时区获取时间函数获取 当前时间 time()获取 当前时间&#xff08;微秒&#xff09; gett…

如何快速图片压缩指定大小?图片压缩到200k以内的方法

图片压缩到200k以内的介绍 在现代社交媒体和网页设计中&#xff0c;高质量的图片是必不可少的。但是&#xff0c;大型图像文件可能会导致页面加载时间过长&#xff0c;从而影响用户体验。这时就需要使用图片压缩技术来将图片文件大小减小到合理的范围内。其中&#xff0c;将图…

维纳过程和伊藤引理

目录 一、马尔可夫过程&#xff08;Markov&#xff09; 1. 基本概念 2. 具体使用 二、维纳过程 1. 基本概念 2. 具体使用 三、广义维纳过程 1. 漂移率和方差率 2. 广义维纳过程的基本概念 3. 具体使用 四、伊藤过程 五、几何布朗运动 六、伊藤引理 1. 基本概念 …

详解RGB和YUV色彩空间转换

前言 首先指出本文中的RGB指的是非线性RGB&#xff0c;意思就是经过了伽马校正&#xff0c;按照行业规矩应当写成RGB&#xff0c;但是为了书写方便&#xff0c;仍写成RGB。关于YUV有多种叫法&#xff0c;分别是YUV&#xff0c;YPbPr&#xff0c;YCbCr。因此本文将首先指出他们之…

Redis6 数据结构Hash

前言 在Redis中&#xff0c;hashtable 被称为字典&#xff08;dictionary&#xff09;,它是一个数组链表到结构。每个键值对都会有一个dictEntry OBJ_ENCODING_HT 这种编码夯实内部才是真正的哈希表结构&#xff0c;或称为字典结构&#xff0c;其可以实现O(1)复杂度的读写操作…