3 条题解

  • 0
    @ 2024-7-18 21:27:14

    `

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        freopen("char.in","r",stdin);
        freopen("char.out","w",stdout);
        char str[10];
        for(int i=0;i<5;i++){
            scanf("%s",str); 
            for(int j=0;j<5;j++){
                if(str[j]<='Z'&&str[j]>='A'){
                    str[j]+='a'-'A';
                }
                cout<< str[j];
            }
            cout << endl;
            //printf("%s\n",str.c_str());
        }
        return 0; 
    }
    
    • 0
      @ 2024-7-18 21:26:43
      
      

      #include<bits/stdc++.h> using namespace std; int main(){ freopen("char.in","r",stdin); freopen("char.out","w",stdout); char str[10]; for(int i=0;i<5;i++){ scanf("%s",str); for(int j=0;j<5;j++){ if(str[j]<='Z'&&str[j]>='A'){ str[j]+='a'-'A'; } cout<< str[j]; } cout << endl; //printf("%s\n",str.c_str()); } return 0; }

      
      
      • 0
        @ 2024-7-18 21:26:35
        
        

        #include<bits/stdc++.h> using namespace std; int main(){ freopen("char.in","r",stdin); freopen("char.out","w",stdout); char str[10]; for(int i=0;i<5;i++){ scanf("%s",str); for(int j=0;j<5;j++){ if(str[j]<='Z'&&str[j]>='A'){ str[j]+='a'-'A'; } cout<< str[j]; } cout << endl; //printf("%s\n",str.c_str()); } return 0; }

        
        
        • 1

        信息

        ID
        147
        时间
        1000ms
        内存
        256MiB
        难度
        6
        标签
        (无)
        递交数
        51
        已通过
        16
        上传者