摘要:
遍历正方形边长,然后遍历左上角的坐标,计算以这个左上角作为左上角的正方形中的所有值之和,然后和正方形边长的平方看看是否相等,不相等就不是 AC代码 #include <algorithm> #include <iostream> using namespace std; const int N = 阅读全文
摘要:
AC代码: #include <algorithm> #include <iostream> using namespace std; const int N = 201; int head[N]; int f[N][N]; int main() { int n; cin >> n; for (in 阅读全文