8 条题解

  • 2
    @ 2024-6-29 10:52:25

    #include<bits/stdc++.h> using namespace std; int main(){ char ch,ch1; cin>>ch; if('a'<=ch and ch<='z'){ ch1=ch-('a'-'A') } cout<<ch1; return 0; }

    • 1
      @ 2024-6-30 10:22:57

      小朋友不能抄题解

      • 0
        @ 2024-6-30 10:08:06

        #include<bits/stdc++.h> using namespace std; int main(){ char ch; cin>>ch; if('A'<=ch and ch<='Z'){ ch+=32; }else{ ch=ch-('a'-'A'); } cout<<ch; return 0; }

        • 0
          @ 2024-6-30 9:59:53
          #include <bits/stdc++.h>
          using namespace std;
          int main() {
          	char s = '0';
          	scanf("%c", &s);
          	if (s >= 'a' && s <= 'z') {
          		s = s - 'a'+'A';
          	}else if (s >= 'A' && s <= 'Z') {
          		s = s -'A'+'a';
          	}
          	printf("%c\n", s);
          	return 0;
          }
          
          • 0
            @ 2024-3-19 21:58:31
            #include <stdio.h>
            using namespace std;
            int main() {
            	char s = '0';
            	scanf("%c", &s);
            	if (s >= 'a' && s <= 'z') {
            		s = s - 'a'+'A';
            	}else if (s >= 'A' && s <= 'Z') {
            		s = s -'A'+'a';
            	}
            	printf("%c\n", s);
            	return 0;
            }
            
            • -1
              @ 2024-2-23 9:30:19

              #include<bits/stdc++.h> using namespace std; char c; int main(){ cin >> c; c = c-32; cout << c; return 0; }

              • -1
                @ 2024-1-19 9:19:07

                #include<bits/stdc++.h> using namespace std; int main(){ char ch; cin>>ch; ch =ch-('a'-'A'); cout<<ch; return 0; }

                • -4
                  @ 2024-2-21 17:48:45
                  #include <stdio.h>
                  using namespace std;
                  int main() {
                  	char s = '0';
                  	scanf("%c", &s);
                  	if (s >= 'a' && s <= 'z') {
                  		s = s - 'a'+'A';
                  	}else if (s >= 'A' && s <= 'Z') {
                  		s = s -'A'+'a';
                  	}
                  	printf("%c\n", s);
                  	return 0;
                  }
                  
                  • 1

                  信息

                  ID
                  727
                  时间
                  1000ms
                  内存
                  64MiB
                  难度
                  5
                  标签
                  递交数
                  466
                  已通过
                  191
                  上传者