BigZhuGod的粉丝

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;
}

 

全部评论

相关推荐

rbjjj:太杂了吧,同学,项目似乎都没深度,都是api调度耶,分层架构思想没有体现出来了,前端没有前端优化前端工程化体现,后端微服务以及分层架构没体现以及数据安全也没体现,核心再改改,注重于计算机网络,工程化,底层原理吧
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务