9 条题解

  • 0
    @ 2023-7-28 2:30:17

    你们写题解不用代码块的吗

    #include<iostream>
    using namespace std;
    int main() {
        int n;
        cin >> n;
        int themax = -10001, themin = 10001;
        while (n--) {
            int temp;
            cin >> temp;
            themax = max(themax, temp);
            themin = min(themin, temp);
        }
        cout << themin << " " << themax;
    }
    

    信息

    ID
    29
    时间
    1000ms
    内存
    128MiB
    难度
    7
    标签
    递交数
    6575
    已通过
    1580
    上传者