题目链接: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; }
题目链接: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; }
转载于:https://www.cnblogs.com/gaoss/p/4927316.html