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

PROGRAMMING:Eat hot pot

Luz5年前 (2021-05-10)题库446
![ chg.jpg](~/68518b64-f2f7-4694-aaeb-d32afe657f7b.jpg)
The above picture comes from wechat circle of friends: it's basically useless to call me if you have any trouble in this weather. But if you say "eat hot pot", that's great, and our story begins.
This problem requires you to implement a program to automatically check whether there is' chi1 HUO3 guo1 'in the information sent to you by your friends.
###Input format:
Input each line to give a friend information with no more than 80 characters and ending with carriage return. The information is a non empty string, including only letters, numbers, spaces and visible half angle punctuation. When you read a line with only one English period '.', the input ends. This line is not included in the friend information.
###Output format:
First, output the total number of friend information in one line. Then, for each line of your friend's information, check whether it contains' chi1 HUO3 guo1 ', and count how many pieces of such powerful information there are. In the second line, first output the first information of "chi1 HUO3 guo1" (counting from 1), then output the total number of such information, separated by a space. Ensure that the output of all numbers do not exceed 100.
If a friend doesn't mention the key word "chi1 HUO3 guo1" from the beginning to the end, output an expression in the second line.
###Input sample 1:
```in
Hello!
are you there?
wantta chi1 huo3 guo1?
that's so li hai le
our story begins from chi1 huo3 guo1 le
.
```
###Output sample 1:
```out
five
3 2
```
###Input example 2:
```in
Hello!
are you there?
wantta qi huo3 guo1 chi1huo3guo1?
that's so li hai le
our story begins from ci1 huo4 guo2 le
.
```
###Output example 2:
```out
five
-_-#
```







answer:If there is no answer, please comment