11 条题解

  • -2
    @ 2025-2-25 14:40:05

    彩笔管敏皓 #include <bits/stdc++.h>

    using namespace std;

    int main() { int n = 0, m, mx = -999999;

    while (scanf("%d", &m) == 1){
        n += 1;
        if (m > mx)
            mx = m;
    }
    
    cout << n << " " << mx;
    
    return 0;
    

    }

    d026: 从 n 个数中挑选出最大的数(改)

    信息

    ID
    33
    时间
    1000ms
    内存
    256MiB
    难度
    5
    标签
    递交数
    921
    已通过
    321
    上传者