17 条题解

  • 3
    @ 2024-2-20 10:12:55
    #include<iostream> 
    using namespace std; 
    int main(){ 
        int a,b,c;
        cin>>a>>b;
        c=a;
        a=b;
        b=c;
        cout<<a<<" ";
        cout<<b;
        return 0; 
    }
    
    • 2
      @ 2024-2-21 9:45:43
      #include<iostream> 
      using namespace std; 
      int main(){ 
          int a,b,c;
          cin>>a>>b;
          c=a;
          a=b;
          b=c;
          cout<<a<<" ";
          cout<<b;
          return 0; 
      }
      
      • 2
        @ 2024-2-20 10:22:24

        #include using namespace std; int main(){ int a,b,c; cin>>a>>b; c=a%b; cout<<c; return 0; }

        • 2
          @ 2024-2-20 10:18:01
          #include<iostream> 
          using namespace std; 
          int main(){ 
              int a,b,c;
              cin>>a>>b;
              c=a;
              a=b;
              b=c;
              cout<<a<<" ";
              cout<<b;
              return 0; 
          }
          
          • 1
            @ 2024-3-1 17:08:14

            #include using namespace std; int main(){ int a,b,c; cin>>a>>b; c=a; a=b; b=c; cout<<a<<" "; cout<<b; return 0; }

            • 0
              @ 2024-7-18 14:03:22

              第1种解法

              #include <bits/stdc++.h>
              using namespace std;
              int n,m;
              int main(){
              	cin>>n>>m;
              	swap(n,m);
              	cout<<n<<" "<<m;
              	return 0;
              }
              

              第2种解法

              #include <bits/stdc++.h>
              using namespace std;
              int n,m,t;
              int main(){
              	cin>>n>>m;
              	t=m;
              	m=n;
              	n=t;
              	cout<<n<<" "<<m;
              	return 0;
              }
              

              第3种解法

              #include <bits/stdc++.h>
              using namespace std;
              int n,m,t;
              int main(){
              	cin>>n>>m;
              	t=n;
              	n=m;
              	m=t;
              	cout<<n<<" "<<m;
              	return 0;
              }
              
              

              第4种解法

              #include <bits/stdc++.h>
              using namespace std;
              int n,m;
              int main(){
              	cin>>n>>m;
              	cout<<m<<" "<<n;
              	return 0;
              }
              
              
              • 0
                @ 2024-6-10 13:11:00

                jhsfdfsfshfkshfshfxchhfih vc cszvxkdskvckhgsfshh

                • 0
                  @ 2024-6-10 13:10:44

                  #include using namespace std; int main(){ int a,b,c; cin>>a>>b; c=a; a=b; b=c; cout<<a<<" "; cout<<b; return 0; }

                  • 0
                    @ 2024-2-23 8:26:34
                    #include<iostream> 
                    using namespace std; 
                    int main(){ 
                        int a,b,c;
                        cin>>a>>b;
                        c=a;
                        a=b;
                        b=c;
                        cout<<a<<"  ";
                        cout<<b;
                        return 0; 
                    }
                    
                    • 0
                      @ 2024-2-21 16:37:04

                      #include using namespace std; int main(){ int a,b,t; cin>>a>>b ; t=a; a=b; b=t; cout<<a<<" "; cout<<b; return 0; }

                      • 0
                        @ 2024-2-21 16:35:30

                        #include using namespace std; int main(){ int a,b,t; cin>>a>>b ; t=a; a=b; b=t; cout<<a<<" "; cout<<b; return 0; }

                        • 0
                          @ 2024-2-21 10:04:49
                          #include<iostream> 
                          using namespace std; 
                          int main(){ 
                              int a,b,c;
                              cin>>a>>b;
                              c=a;
                              a=b;
                              b=c;
                              cout<<a<<" ";
                              cout<<b;
                              return 0; 
                          }
                          
                          • 0
                            @ 2024-2-20 10:33:36

                            #include using namespace std; int main(){ int a,b,c; cin>>a>>b; c = a; a = b; b = c; cout<<a<<" "; cout<<b; return 0; }

                            • -1
                              @ 2024-2-21 9:55:53
                              #include<iostream> 
                              using namespace std; 
                              int main(){ 
                                  int a,b,c;
                                  cin>>a>>b;
                                  c=a;
                                  a=b;
                                  b=c;
                                  cout<<a<<" ";
                                  cout<<b;
                                  return 0; 
                              }
                              

                              image

                              • -1
                                @ 2024-2-21 9:55:09

                                #include using namespace std; int main(){ int a,b,c; cin>>a>>b; c=a; a=b; b=c; cout<<a<<" "; cout<<b; return 0; }

                                • -1
                                  @ 2024-2-20 10:22:35

                                  #include using namespace std; int main(){ int a,b,c; cin>>a>>b; c = a; a = b; b = c; cout<<"a="<<a<<" "; cout<<"b="<<b; return 0; }

                                  • -1
                                    @ 2024-2-20 10:08:00

                                    #include using namespace std; int main(){ int a,b,c; cin>>a>>b; c=a; a=b; b=c; cout<<a<<" "; cout<<b; return 0; }

                                    • 1

                                    信息

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