| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 41636 | wuxinyue | 分苹果 | C++ | Accepted | 1 MS | 244 KB | 176 | 2024-02-22 20:28:38 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; int sum = 0; int i=1; while(i<=n){ sum += i; i++; } cout << sum; return 0; }