codeforces 592B The Monster and the Squirrel

题目链接http://codeforces.com/contest/592/problem/B

题目分类:数学,找规律

题目分析:重要的是画图找规律

 

代码

#include<bits/stdc++.h>

using namespace std;

#define LL __int64

int main()
{
    LL n;
    cin>>n;
    cout<<(n-2)*(n-2)<<endl;
    return 0;
}

 

posted @ 2015-11-01 10:10  Gssol  阅读(140)  评论(0编辑  收藏  举报