1 条题解

  • 0
    @ 2025-9-15 0:46:27
    #include<bits/stdc++.h>
    using namespace std;
    // const int N=1e6+10;
    
    signed main(){
        int _=1;
        // cin>>_;
        while (_--) {
            int n;
            cin>>n;
            cout<<(1+n)*n/2;
        }
    }
    
    • 1

    信息

    ID
    68
    时间
    1000ms
    内存
    256MiB
    难度
    4
    标签
    递交数
    40
    已通过
    20
    上传者