时间复杂度O(1)李赛科2025-05-25 21:07:01发布于:江苏1阅读0回复0点赞#include <bits/stdc++.h> using namespace std; int n; int main() { cin >> n; cout << (1 + n) * n / 2; return 0; } 有帮助,赞一个去预览0/2000发布这里空空如也
有帮助,赞一个