2 条题解

  • 0
    @ 2025-10-21 18:11:22
    #include<stdio.h>
    #include<string.h>
    
    int main(){
    	char tot[105];
    	
    	fgets(tot,sizeof(tot),stdin);
    	
    	int i;
    	
    	for(i=0;i<strlen(tot);i++){
    		if(i==0||tot[i-1]==' '){
    			if(tot[i]>='a'&&tot[i]<='z'){
    				tot[i]-=32;
    			}
    		}
    	}
    
    	printf("%s",tot);
    	
    	return 0;
    	
    } 
    

    信息

    ID
    232
    时间
    1000ms
    内存
    256MiB
    难度
    1
    标签
    递交数
    494
    已通过
    161
    上传者