2 条题解

  • 0
    @ 2025-12-23 22:08:23
    #include <bits/stdc++.h>
    using namespace std;
    int main(){
    	int n;
    	cin >> n;
    	cout << (n + 1) * n / 2;
    	return 0;
    }
    

    信息

    ID
    6929
    时间
    1000ms
    内存
    128MiB
    难度
    1
    标签
    递交数
    9
    已通过
    9
    上传者