5 条题解

  • 0
    @ 2026-8-19 8:37:57
    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
    	int n;
    	cin >> n;
    	cout << (1 + n)*n / 2;
    	return 0;
    }
    

    信息

    ID
    30028
    时间
    1000ms
    内存
    256MiB
    难度
    1
    标签
    递交数
    104
    已通过
    70
    上传者