1 条题解

  • 0
    @ 2024-12-22 11:03:57

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    
    int main(){
    	int a,b,c;
    	scanf("%d%d%d",&a,&b,&c);
    	int sum=0;
    	sum=max(a,b);
    	sum=max(sum,c);
    	cout<<sum;
    }
    

    Python :

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

    信息

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