1 solutions

  • 0
    @ 2021-10-30 11:30:38

    签到题,注意一下字符串里面不止有字母就可以了

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

    Information

    ID
    143
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    8
    Tags
    # Submissions
    224
    Accepted
    32
    Uploaded By