| 比赛 | 20111111 | 评测结果 | WWWWWWWWWW |
|---|---|---|---|
| 题目名称 | 最优分解方案 | 最终得分 | 0 |
| 用户昵称 | hello! | 运行时间 | 0.000 s |
| 代码语言 | C++ | 内存使用 | 0.00 MiB |
| 提交时间 | 2011-11-11 10:52:31 | ||
#include<cstdio>
#include<iostream>
#include<iomanip>//<<setiosflags(ios::fixed)<<setprecision()<<
#include<cstring>
using namespace std;
int main()
{
freopen("best.in","r",stdin);
freopen("best.out","w",stdout);
int n;
cin>>n;
if(n%2==1)
{
n=n-1;
n=n/2;
cout<<n*(n+1)<<endl;
}
else
{
n=n/2;
cout<<n*n<<endl;
}
return 0;
}