3 条题解

  • -2
    @ 2025-1-13 19:21:13
    include<懒得写>
    using namespace std;
    int main(){
    int a[4],i=1;
    while(i<=3){
    cin>>a[i]
    i++;
    }
    int sa=a[0],sf=a[3];
    for(int i=1;i<=3;i++){
    if(sa<a[i]) sa=a[i];
    if(sg>a[i]) sg=a[i];
    }
    cout<<sa<<" "<<sg;
    }

    信息

    ID
    73
    时间
    1000ms
    内存
    256MiB
    难度
    5
    标签
    递交数
    69
    已通过
    28
    上传者