| 记录编号 | 232975 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 396.[网络流24题]魔术球问题(简化版) | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.003 s | ||
| 提交时间 | 2016-03-03 18:27:31 | 内存使用 | 0.31 MiB | ||
#include<cstdio>
#include<iostream>
#include<algorithm>
using namespace std;
long long n;
int main(){
freopen("balla.in","r",stdin);
freopen("balla.out","w",stdout);
scanf("%lld",&n);
printf("%lld",(n*n+2*n-1)>>1);
return 0;
}