Run ID:93958
提交时间:2024-10-19 16:33:53
#include <iostream> using namespace std; int main() { int n; while (cin >> n) { cout<<n*(n+1)/2; } return 0; }