首页 > 其他 > 详细

BigZhuGod的粉丝

时间:2016-12-24 20:14:53      阅读:329      评论:0      收藏:0      [点我收藏+]

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(1T100)。 接下来T行,每行一个有格式的字符串,详见样例,字符串长度不超过1000
 

 

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!
#include <iostream>
#include <cstdio>
#include <cstring>

using namespace std;

int main()
{
    int t;
    scanf("%d",&t);

    while(t--){
        char c[2000];
        getchar();
        for(int i=0;i<14;i++) getchar();
        scanf("%s",c);
        int l=strlen(c);
        if(l==1){
            if(c[0]==?){
                printf("-_-\n");
            }
            if(c[0]==.){
                printf("Orz\n");
            }
            if(c[0]==!){
                printf("Wow!\n");
            }
        }else{
            printf("W");
            for(int i=0;i<l;i++){
                printf("o");
            }
            printf("w!\n");
        }
    }
    return 0;
}

 

BigZhuGod的粉丝

原文:http://www.cnblogs.com/TWS-YIFEI/p/6217883.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!