签到题,注意一下字符串里面不止有字母就可以了
#include<string.h> #include<stdio.h> int main(){ char s1[202],s2[101]; scanf("%s",&s1); scanf("%s",&s2); strcat(s1,s2); for(int i=0;s1[i]!='\0';i++) if(s1[i]>='a'&&s1[i]<='z') s1[i]-=32; puts(s1); return 0; }
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 追梦算法网 universal account