HBC14745Hungry!题解

一个忧伤的美男子 算法基础篇 59 0
全网最全C++题库,助您快速提升编程技能!题库丰富多样,涵盖各个领域,让您在练习中不断成长!
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?" 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 !

     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. (- . -)

HBC14745Hungry!题解
-第1张图片-东莞河马信息技术
(图片来源网络,侵删)
想要在职场中立于不败之地?那就来试试全网最全C++题库,让您在练习中快速提升技能。

标签: HBC14745Hungry!题解