12 条题解

  • 1
    @ 2024-11-23 20:02:57
    #include <iostream>
    using namespace std;
    int main()
    {
    int a,b;
    cin >> a >> b;
    if(a>b)
    {
    cout << a;
    }
    else if(a<b)
    {
    cout << b;
    }
    return 0;
    }
    

    有标志认证,属三无产品,请各位放心食用

    • 1
      #include < iostream >
      using namespace std;
      int main()
      {
      int a,b;
      cin >>a >>b;
      if(a > b)
      {
      cout <<a;
      }
      if (a < b)
      {
      cout <<b;
      }
      return 0;
      }
      
    • 1
      @ 2023-7-16 15:47:51
      #include<iostream>
      #include<string>
      #include<cstdio>
      #include<bits/stdc++.h>
      using namespace std;
      #define LL long long
      const int N=1e6+10;
      const int INF=0x3f3f3f3f;
      int a,b;
      int main(){
      	cin>>a>>b;
      	cout<<max(a,b);
      }
      
      
      • 1
        @ 2022-10-7 18:54:00
        #include<bits/stdc++.h> 
        using namespace std;
        int main(){
        	int a,b;
        	cin>>a>>b;
        	if(a>b)cout<<a;
        	else cout<<b;
        }
        
        • 0
          @ 2024-12-29 18:27:23

          #include<bits/stdc++.h> using namespace std; int main(){ double a,b; cin>>a>>b; if(a>b) { cout<<a; } else { cout<<b; } return 0;

          }

          • -1
            @ 2023-4-4 20:58:16

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

            • -1
              @ 2023-1-26 16:25:33
              #include <bits/stdc++.h>
              using namespace std;
              int main(){
                  int a,b;
                  cin>>a>>b;
                  cout<<max(a,b);
                  return 0;
              }
              
              
              • -1
                @ 2021-10-16 19:41:39

                a,b=map(int,input().split()) if a>b: print(a) if b>a: print(b)

                • -2
                  @ 2023-2-18 14:32:01

                  #include <iostream> using namespace std; int main() { int a,b;

                  cin >>a >>b;

                  if(a > b)

                  {

                  cout <<a;
                  

                  }

                  if (a < b)

                  {

                  cout <<b;
                  

                  }

                  return 0;

                  }

                  • -2
                    @ 2022-1-2 17:53:46
                    #include <stdio.h>
                    #include <iostream>
                    #include <math.h>
                    using namespace std;
                    int main()
                    {
                    	int a,b;
                    	cin >>a >>b;
                    	if(a > b)
                    	{
                    		cout <<a;
                    	}
                    	if (a < b)
                    	{
                    		cout <<b;
                    	}
                    	return 0;
                    }
                    
                    • -3
                      @ 2022-7-2 17:19:52

                      #include<stdio.h> #include<iostream> #include<math.h> using namespace std; int main() { int a,b; cin>>a>>b; a=max(a,b); cout<<a<<endl; }

                      • -3
                        @ 2022-3-28 20:27:04

                        #include <iostream>

                        using namespace std;

                        int main()

                        {

                        int a,b;
                        
                        cin >>a >>b;
                        
                        if(a > b)
                        
                        {
                        
                        	cout <<a;
                        
                        }
                        
                        if (a < b)
                        
                        {
                        
                        	cout <<b;
                        
                        }
                        
                        return 0;
                        

                        } //abcabcbacbabcbabbcb

                        • 1

                        信息

                        ID
                        882
                        时间
                        1000ms
                        内存
                        128MiB
                        难度
                        3
                        标签
                        递交数
                        766
                        已通过
                        412
                        上传者