标签:ring 区分大小写 span ++ 区分 style i++ ret bsp
1 string ss="jessie"; 2 int main() 3 { 4 scanf("%d",&t); 5 sort(ss.begin(),ss.end()); 6 while(t--){ 7 string s; 8 cin>>s; 9 for(int i=0;i<s.size();i++){ 10 if(s[i]>=‘A‘&&s[i]<=‘Z‘) s[i]+=32;//不区分大小写 11 } 12 sort(s.begin(),s.end()); 13 if(s==ss) 14 printf("Good guy!\n"); 15 else{ 16 printf("Dare you say that again?\n"); 17 } 18 } 19 return 0; 20 }
标签:ring 区分大小写 span ++ 区分 style i++ ret bsp
原文地址:https://www.cnblogs.com/tingtin/p/9651541.html