16 条题解

  • 3
    @ 2022-1-2 14:52:33
    #include <stdio.h>
    #include <iostream>
    #include <math.h>
    #include <iomanip>
    using namespace std;
    #define LL Long Long
    const int N=1e5+10;
    const int INF=0x3f3f3f3f;
    int main()
    {
    
        char a;
        cin>>a;
        if(a>=65&&a<=90){
                a+=32;
            }else if(a>=97&&a<=122){
                a-=32;
            }
        cout<<a;
        
    
    }
    
    • 1
      @ 2023-6-25 14:22:21
      #include <iostream>
      #include <stdio.h>
      #include <iomanip>
      #include <math.h>
      using namespace std;
      const int N = 1e6 + 10;
      const int INF = 0x3f3f3f3f;
      int main()
      {
      	char a;
      	cin >> a;
      	if( a <= 90 && a >= 65 )
      	{
      		a = a + 32;
      		cout << a;
      	}
      	else if( a >= 61 && a <= 122 )
      	{
      		a = a - 32;
      		cout << a;
      	}
      	else
      	{
      		cout << a;
      	}
      	return 0;
      }
      
      • 0
        #include <iostream>
        using namespace std;
        int main()
        {
        	char a;
        	cin>>a;
        	if (a>=65&&a<90)
        	{
        		cout<<(a+=32);
        	}
        	else if(a>97&&a>122)
        	{
        		cout<<a-32;
        	}
        	return 0;
        }
        
        • 0
          @ 2024-5-22 20:32:57

          #include<iostream> using namespace std; int main() { char x; cin>>x; if(65<=x and x<=90) { x = x + 32; cout<<x; }else if(97<=x and x<=122) { x=x-32; cout<<x; }else { cout<<x; } return 0; }

          • 0
            @ 2023-4-21 13:06:43

            #include <iostream> using namespace std; int main(){ char a; cin >>a; if(a>=65 && a<=90) a+=32; if(a>=97 && a<=122) a-=32; cout <<a; }

            • 0
              @ 2023-3-26 17:20:15

              image

              • 0
                @ 2023-3-13 16:55:00
                #include <stdio.h>
                #include <iostream>
                #include <math.h>
                #include <iomanip>
                using namespace std;
                #define LL Long Long
                const int N=1e5+10;
                const int INF=0x3f3f3f3f;
                int main()
                {
                
                    char a;
                    cin>>a;
                    if(a>=65&&a<=90){
                            a+=32;
                        }else if(a>=97&&a<=122){
                            a-=32;
                        }
                    cout<<a;
                    
                
                }
                
                • 0
                  @ 2023-1-7 16:58:07
                  #include<iostream>
                  #include<iomanip>
                  #include<stdio.h>
                  #include<math.h>
                  #include<string>
                  #include<cstring>
                  using namespace std;
                  int main(){
                  	char a;
                  	cin>>a;
                  	if('a'<=a&&a<='z')a=toupper(a);
                  	else if('A'<=a&&a<='Z')a=tolower(a);
                  	cout<<a;
                  	return 0;
                  }
                  
                  • 0
                    @ 2022-1-17 23:05:56
                    #include <iostream>
                    using namespace std;
                    char a[5];
                    int main(){
                       cin>>a[0];
                        if(a[0]>=65&&a[0]<=90)
                            a[0]+=32;
                        else if(a[0]>=97&&a[0]<=122)
                           a[0]-=32;
                       cout<<a[0]<<endl;
                        return 0;
                    }
                    
                    • 0
                      @ 2022-1-2 14:55:53
                      #include <stdio.h>
                      #include <iostream>
                      using namespace std;
                      int main(){
                          char a;
                          cin>>a;
                          if(a>=65&&a<=90){
                                  a+=32;
                              }else if(a>=97&&a<=122){
                                  a-=32;
                              }
                          cout<<a;
                          
                      }
                      
                      • 0
                        @ 2021-12-4 12:15:52
                        //Write by: FSC711300
                        #include <bits/stdc++.h>
                        using namespace std;
                        int main(){
                            char a;
                            cin>>a;
                            if(a>=65&&a<=90){
                                    a+=32;
                                }else if(a>=97&&a<=122){
                                    a-=32;
                                }
                            cout<<a;
                            
                        }
                        
                      • -1
                        @ 2023-4-4 20:33:29

                        #include<bits/stdc++.h> using namespace std; int main() { char a; cin>>a; if(a>=65&&a<=90) a+=32; else if(a>=97&&a<=122) a-=32; cout<<a; return 0; }

                        • -1
                          @ 2023-3-23 21:00:59

                          #include <iostream> #include <cmath> using namespace std; int main() { int a; cin>>a; if(a%4==0&&a%100!=0) { cout<<"Y"; }else{ cout<<"N" ; } return 0; }

                          • -1
                            @ 2023-2-18 12:01:45

                            #include<iostream>使用命名空间 std;int main(){char a;辛>>;if(a>=65&&a<=90){cout<<(char)(a+32);}else{if(a>=97&&a<=122){cout<<(char)(a-32) ;}else{cout<<a;}}返回 0;

                            }

                            • -2
                              @ 2021-10-16 19:45:12

                              n=input() if n.isupper()==True: print(n.lower()) elif n.islower()==True: print(n.upper()) else: print(n)

                              • -2
                                @ 2021-10-14 13:12:24

                                n=input() if n.isupper()==True: print(n.lower()) elif n.islower()==True: print(n.upper()) else: print(n)

                                • 1

                                信息

                                ID
                                853
                                时间
                                1000ms
                                内存
                                128MiB
                                难度
                                3
                                标签
                                递交数
                                814
                                已通过
                                423
                                上传者