BigZhuGod的粉丝
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 0 Accepted Submission(s): 0
Problem Description
真正的粉丝,是不需要题目描述的^_^。
Input
第一行输入数据组数T(1≤T≤100)。 接下来T行,每行一个有格式的字符串,详见样例,字符串长度不超过1000。
Output
真正的粉丝,就算我不给出输出格式,还是可以AC这道题目。 ^_^
Sample Input
5
I am BigZhuGod?
I am BigZhuGod.
I am BigZhuGod!
I am BigZhuGod!!!
I am BigZhuGod!!!!!
I am BigZhuGod?
I am BigZhuGod.
I am BigZhuGod!
I am BigZhuGod!!!
I am BigZhuGod!!!!!
Sample Output
-_-
Orz
Wow!
Wooow!
Wooooow!
Orz
Wow!
Wooow!
Wooooow!
#include <iostream>
#include <cstdio>
#include <cstring> using namespace std; int main()
{
int t;
scanf("%d",&t); while(t--){
char c[];
getchar();
for(int i=;i<;i++) getchar();
scanf("%s",c);
int l=strlen(c);
if(l==){
if(c[]=='?'){
printf("-_-\n");
}
if(c[]=='.'){
printf("Orz\n");
}
if(c[]=='!'){
printf("Wow!\n");
}
}else{
printf("W");
for(int i=;i<l;i++){
printf("o");
}
printf("w!\n");
}
}
return ;
}