标签:pre icpc col while tar name ret lse for
https://nanti.jisuanke.com/t/31710
若输入的是Jessie或jessie,输出Good guy!,否则输出Dare you say that again?
水题,学习一下string直接转小写的操作,方便。
#include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 1e5 + 10; int main(){ int t; cin>>t; string s; while(t--){ cin>>s; transform(s.begin(),s.end(),s.begin(),::tolower); if(s=="jessie") puts("Good guy!"); else puts("Dare you say that again?"); } return 0; }
ACM-ICPC 2018 焦作赛区网络预赛 A Magic Mirror(签到)
标签:pre icpc col while tar name ret lse for
原文地址:https://www.cnblogs.com/fht-litost/p/9662111.html