您的位置:首页 > 产品设计 > UI/UE

Codeforces Round #328 (Div. 2) B. The Monster and the Squirrel

2015-11-01 12:04 453 查看
这题就是找规律,把3-7的答案画出来,然后去找规律,就行了。answer=(n-2)*(n-2);

#include<stdio.h>
#include<string.h>
#include<algorithm>
using namespace std;
#define LL long long
int main()
{
LL n;
while(scanf("%lld",&n)!=EOF)
{
printf("%lld\n",(n-2)*(n-2));
}
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: