BigZhuGod 的粉丝

Problem Description
真正的粉丝,是不需要题目描述的 ^_^。
 

 

Input
第一行输入数据组数 
接下来  行,每行一个有格式的字符串,详见样例,字符串长度不超过 
 

 

Output
真正的粉丝,就算我不给出输出格式,还是可以 AC 这道题目。
^_^
 

 

Sample Input
5 I am BigZhuGod? I am BigZhuGod. I am BigZhuGod! I am BigZhuGod!!! I am BigZhuGod!!!!!
 

 

Sample Output
-_- Orz Wow! Wooow! Wooooow!
 
粉丝题
 
 1 /**
 2  * @Author:      H S-J
 3  * @DateTime:    2016-12-24 12:31:40
 4  * @Description: hdu - 1
 5  */
 6 #include <functional>
 7 #include <algorithm>
 8 #include <iostream>
 9 #include <fstream>
10 #include <sstream>
11 #include <iomanip>
12 #include <numeric>
13 #include <cstring>
14 #include <cassert>
15 #include <cstdio>
16 #include <string>
17 #include <vector>
18 #include <bitset>
19 #include <queue>
20 #include <stack>
21 #include <cmath>
22 #include <ctime>
23 #include <list>
24 #include <set>
25 #include <map>
26 using namespace std;
27 
28 
29 int main()
30 {
31     int n;
32     char s[11111];
33     cin >> n;
34     while (n--) {
35         while (scanf("%s", s), getchar() != '\n');
36         int count = 0;
37         int flag = 1;
38         for (int i = 9; i < strlen(s); ++i) {
39             if (s[i] == '?') {
40                 cout << "-_-" << endl;
41                 flag = 0;
42                 break;
43             }
44             if (s[i] == '.') {
45                 cout << "Orz" << endl;
46                 flag = 0;
47                 break;
48             }
49             if (s[i] == '!') {
50                 ++count;
51             }
52         }
53         if (flag) {
54             cout << "W";
55             for (int i = 0; i < count; ++i) {
56                 cout << "o";
57             }
58             cout << "w!" << endl;
59         }
60     }
61     return 0;
62 }

 

 
posted @ 2016-12-24 20:51  晴天0  阅读(106)  评论(0编辑  收藏  举报