2 条题解

  • 0
    @ 2026-6-4 22:46:06
    #include <bits/stdc++.h>
    using namespace std;
    int main() {
    int n;
    cin >> n;
    cout <<n*(n+1)/2<< endl;
        return 0;
    }
    
    
    

    信息

    ID
    30962
    时间
    1000ms
    内存
    256MiB
    难度
    2
    标签
    (无)
    递交数
    26
    已通过
    21
    上传者