10 条题解

  • 2
    @ 2023-2-18 10:48:55
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    char a;
    cin>>a;
    int k=1,l=1;
    if(a>=97&&a<=122){
    printf("%c",(a-32));
    }
    else{
    printf("%c",(a+32));
    }
    return 0;
    }
    
    • 1
      @ 2023-2-18 11:11:00
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
      	char a;
      	cin>>a;
      	if(a>='A' && a<='Z')
      	{
      		cout<<char(a+32);
      		return 0;
      	}
      	if(a>='a' && a<='z')
      	{
      		cout<<char(a-32);
      		return 0;
      	}
      	return 0;
      }
      
      • 0
        @ 2023-2-18 10:37:17
        
        
        题解 - 【入门】大小写转换 - Hydro body { --font-family: "Microsoft Yahei", "Open Sans", "Seravek", "Segoe UI", "Verdana", "PingFang SC", "Hiragino Sans GB", "Lantinghei SC", "Microsoft Yahei", "WenQuanYi Micro Hei", "sans"; --code-font-family: "Ubuntu Mono", "monaco", "Source Code Pro", "Consolas", "Lucida Console", "monospace"; --font-ligatures: none !important; } #panel { display: flex; flex-direction: column; }

        3 条题解

        • 0
          6 (tyz) LV 5
          </div>
            </div>
            <div class="hasjs--hide">
              <form method="post" class="dczcomments__box" name="dczcomments__box__form" data-hotkey="ctrl+enter:submit,esc:vjCommentBoxCancel">
                <div>
                  <textarea name="content" class="textbox" data-markdown required></textarea>
                </div>
                <div>
                  <input type="submit" class="rounded primary button dczcomments__box__submit" value="分享 (Ctrl+Enter)" data-value-reply="回复 (Ctrl+Enter)" data-value-comment="分享 (Ctrl+Enter)" data-value-comment-update="更新 (Ctrl+Enter)" data-value-reply-update="更新 (Ctrl+Enter)">
                  <input type="button" class="rounded button nojs--hide" name="dczcomments__box__cancel" value="取消 (Esc)">
                </div>
                <input type="hidden" name="operation" value="submit">
              </form>
            </div>
            <div class="nojs--hide">
              <textarea class="textbox" name="dczcomments__dummy-box" readonly data-form="{&quot;operation&quot;:&quot;submit&quot;}" placeholder="发表您的题解"></textarea>
            </div>
            <div class="commentbox-placeholder"></div>
            <ul style="display:none">
              <li class="dczcomments__reply commentbox-container">
                <div class="media">
                  <div class="media__body top">
                    <div class="clearfix">
                      <div class="supplementary dczcomments__supplementary">
                        <span class="user-profile-link">
            <img class="small user-profile-avatar v-center" loading="lazy" src="//cn.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=mm&amp;s=64" width="20" height="20">
          <a class="user-profile-name" href="/user/172">
                6 (tyz)
            </a>
          
          </span>
          </div>
                    </div>
                    <div class="commentbox-placeholder"></div>
                  </div>
                </div>
              </li>
            </ul>
          </div>
          
          </li>
        • 1
          6 (tyz) LV 5 @ 2023-2-18 2:21:32

          给个全对的题解

          </div>
            <div class="commentbox-edit-target"></div>
            <ul class="dczcomments__replies commentbox-reply-target"></ul>
          </div>
          
          </li>
        • 1
          6 (tyz) LV 5 @ 2023-2-18 2:10:35
          #include<bits/stdc++.h>
          using namespace std;
          int main(){
              char a;
          	cin>>a;
          	int v;
          	v=int(a);
          	a=a+32;
          	printf("%c",a);
          	return 0;
          }
          
          </div>
            <div class="commentbox-edit-target"></div>
            <ul class="dczcomments__replies commentbox-reply-target"></ul>
          </div>
          
          </li>
        • -1
          汤涵棋 (202420502) LV 4 @ 2022-10-29 8:03:06

          </div>
            <div class="commentbox-edit-target"></div>
            <ul class="dczcomments__replies commentbox-reply-target">        <li class="dczcomments__reply">
                <div class="media">
                  <div class="media__body top">
                    <div class="clearfix">
                      <div class="supplementary dczcomments__supplementary">
                        <span class="user-profile-link">
            <img class="small user-profile-avatar v-center" loading="lazy" src="//cn.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=mm&amp;s=64" width="20" height="20">
          <a class="user-profile-name" href="/user/172">
                6 (tyz)
            </a>
          
          </span> @ 2023-2-18 2:05:22

          盗我号是吧

          </div>
                    <div class="commentbox-edit-target"></div>
                    </div>
                </div>
              </li>        <li class="dczcomments__reply">
                <div class="media">
                  <div class="media__body top">
                    <div class="clearfix">
                      <div class="supplementary dczcomments__supplementary">
                        <span class="user-profile-link">
            <img class="small user-profile-avatar v-center" loading="lazy" src="//cn.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=mm&amp;s=64" width="20" height="20">
          <a class="user-profile-name" href="/user/172">
                6 (tyz)
            </a>
          
          </span> @ 2023-2-18 2:05:39

          可能还不够资格哈哈哈哈哈

          </div>
                    <div class="commentbox-edit-target"></div>
                    </div>
                </div>
              </li></ul>
          </div>
          
        • </ul>
          <ul class="pager pager-bottom"><li>
                <span class="pager__item current">1</span>
              </li></ul>
          
                          </div>
          </div>
            </div>
          

          信息

          ID
          968
          时间
          1000ms
          内存
          64MiB
          难度
          10
          标签
          递交数
          9
          已通过
          3
          上传者
          mzh
      
      
    • -1
      @ 2023-2-18 10:57:27

      #include<bits/stdc++.h> using namespace std; int main(){ char a; cin>>a; int k=1,l=1; if(a>=97&&a<=122){ printf("%c",(a-32)); } else{ printf("%c",(a+32)); } return 0; }

      • -1
        @ 2023-2-18 10:56:39

        #include<bits/stdc++.h> using namespace std; int main(){ char a; cin>>a; int k=1,l=1; if(a>=97&&a<=122){ printf("%c",(a-32)); } else{ printf("%c",(a+32)); } return 0; }

        • -1
          @ 2023-2-18 10:40:08
          #include<bits/stdc++.h>
          using namespace std;
          int main(){
          	char a;
          	cin>>a;
          	int k=1,l=1;
              if(a>=97&&a<=122){
              	printf("%c",(a-32));
          	}
          	else
          	   printf("%c",(a+32));
          	return 0;
          
          • -2
            @ 2023-2-18 10:46:51
            #include<bits/stdc++.h>
            using namespace std;
            int main(){
            	char a;
            	cin>>a;
            	int k=1,l=1;
                if(a>=97&&a<=122){
                	printf("%c",(a-32));
            	}
            	else
            	   printf("%c",(a+32));
            	return 0;
            }
            
            • -2
              @ 2023-2-18 10:21:32

              给个全对的题解

              • -2
                @ 2023-2-18 10:10:35
                #include<bits/stdc++.h>
                using namespace std;
                int main(){
                    char a;
                	cin>>a;
                	int v;
                	v=int(a);
                	a=a+32;
                	printf("%c",a);
                	return 0;
                }
                
                • -2
                  @ 2022-10-29 16:03:06

                  • @ 2023-2-18 10:05:22

                    盗我号是吧

                  • @ 2023-2-18 10:05:39

                    可能还不够资格哈哈哈哈哈

                • 【入门】大小写转换

                  信息

                  ID
                  968
                  时间
                  1000ms
                  内存
                  64MiB
                  难度
                  5
                  标签
                  递交数
                  39
                  已通过
                  16
                  上传者