2 条题解

  • 0
    @ 2025-5-28 20:24:41
    #include<iostream>
    using namespace std;
    ;int main() {
    	int x, y;cin >> x >> y;
    	cout << (x > y) ? x : y;
    }
    
    ![](/file/98/5HwJWiJNR-WYkZI2HgHsT.jpeg)
    • 0
      @ 2024-12-24 9:14:31

      C++ :

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

      Python :

      # coding=utf-8
      x=int(input())
      y=int(input())
      if x>y :
          print(x)
      else:
          print(y)
      
      • 1

      信息

      ID
      531
      时间
      1000ms
      内存
      128MiB
      难度
      10
      标签
      (无)
      递交数
      2
      已通过
      0
      上传者