首页 > 其他 > 详细

2018焦作网络赛A

时间:2018-09-16 11:21:33      阅读:179      评论:0      收藏:0      [点我收藏+]

water

 

 

 

技术分享图片
#include <bits/stdc++.h>
#include <unordered_set>
#include <unordered_map>
#define pb push_back
#define mp make_pair
#define x first
#define y second
#define rep(i,x,y) for(i=x;i<=y;i++)
#define rep1(i,x,y) for(i=x;i<y;i++)
#define lson l,mid,rt<<1
#define rson mid+1,r,rt<<1|1
#define up rt,rt<<1,rt<<1|1
#define mem(x) memset(x,0,sizeof(x))
#define mem1(x) memset(x,-1,sizeof(x))
using namespace std;
typedef long long ll;
typedef double db;
const int M = 1e5+7;
const double pi = acos(-1);
const int inf = 2147483647;
const int mod = 1e9+7;

int _;
char s[40];

int main(){
    #ifdef LMissher
        freopen("1.in","r",stdin);
        freopen("1.out","w",stdout);
    #endif
    scanf("%d",&_);
    while(_--){
        scanf("%s",s);
        int l=strlen(s);
        for(int i=0;i<l;i++)
            if(s[i]>=A&&s[i]<=Z)
                s[i]=s[i]-A+a;
        if(strcmp(s,"jessie")==0) printf("Good guy!\n");
        else printf("Dare you say that again?\n");
    }
    return 0;
}
View Code

 

2018焦作网络赛A

原文:https://www.cnblogs.com/LMissher/p/9655099.html

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