| 比赛 | 20111111 | 评测结果 | WWWWWWWWWW |
|---|---|---|---|
| 题目名称 | 最优分解方案 | 最终得分 | 0 |
| 用户昵称 | QhelDIV | 运行时间 | 0.000 s |
| 代码语言 | C++ | 内存使用 | 0.00 MiB |
| 提交时间 | 2011-11-11 10:35:32 | ||
#include<fstream>
using namespace std;
ifstream fin("best.in");
ofstream fout("best.out");
int n;
int main()
{
int i,sum=1,total=0;
fin>>n;
for(i=2;total+i<=n;i++)
{
sum*=i;
total+=i;
}
sum/=(n-total);
sum*=(n+n-total-total);
fout<<sum<<endl;
fin.close();
fout.close();
return 0;
}