Loading [Contrib]/a11y/accessibility-menu.js
上傳編號 228165
上傳時間 2025-04-10 19:45:21
題目 [練習題]西格馬嗯
使用者 anonymous
總得分 0, in 0 ms
# State Runtime Memory
0 0 393216
1 0 393216
2 0 446464
3 0 380928
1
2
3
4
5
6
7
8
9
10
#include <iostream>
#include <stdio.h>
#include <cmath>
using namespace std;
int main() {
int n;
cin >> n;
printf("%.4f", n*(n+1)/2);
cout << endl;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX