CodeForces 592B

这是到规律题,亲自动手画几个图就知道了,答案为(n-2)^2;

#include <iostream>

using namespace std;

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

 

posted on 2016-05-26 08:58  猫哥小俊  阅读(126)  评论(0编辑  收藏  举报

导航