2 条题解

  • 1
    @ 2023-10-2 15:47:15
    #include<iostream>
    #include<cstdio>
    #include<cmath>
    #include<algorithm>
    using namespace std;
    int main(){
    	int a,b,c;
    	cin >> a >> b >> c;
    	bool bl1=a>b;
    	bool bl2=a>c;
    	bool bl3=b>c;
    	if(bl1 == 1){
    		if(bl2 == 1){
    			cout << a;
    		}else{
    			cout << c;
    		}
    	}else{
    		if(bl3 == 1){
    			cout << b;
    		}else{
    			cout << c;
    		}
    	}
    	return 0;
    }
    
    • 0
      @ 2023-10-22 11:27:38
      #include <bits/stdc++.h>
      using namespace std;
      int main()
      {
          long long maxx=-114514191981066666;
          for(int i=1;i<=3;i++){long long a;cin>>a;maxx=max(maxx,a);}
          cout<<maxx;
          return 0;
      }
      
      • 1

      信息

      ID
      6861
      时间
      1000ms
      内存
      128MiB
      难度
      1
      标签
      (无)
      递交数
      66
      已通过
      35
      上传者