摘要:
3.2.5 Magic Squares 魔板 成功地发明了魔方之后,鲁比克先生发明了它的二维版本,称作魔板。这是一张有8个大小相同的格子的魔板: 我们知道魔板的每一个方格都有一种颜色。这8种颜色用前8个正整数来表示。可以用颜色的序列来表示一种魔板状态,规定从魔板的左上角开始,沿顺时针方向依次取出整数 阅读全文
posted @ 2018-07-09 15:17
wbss
阅读(187)
评论(0)
推荐(0)
摘要:
#include using namespace std; int b[10],a; char str[3]={' ','+','-'}; void out() { for(int i=1;i=a) { pd(); return 0; } for(int i=0;i>a; p(1); return 0; } 阅读全文
posted @ 2018-07-09 15:14
wbss
阅读(285)
评论(0)
推荐(0)
摘要:
#include<bits/stdc++.h> using namespace std; int a,ans=0,c[105][105]; char b[105][105]; int p(int x,int y) { if(x==1&&y==a) { ans++; return 1; } bool 阅读全文
posted @ 2018-07-09 13:41
wbss
阅读(206)
评论(0)
推荐(0)

浙公网安备 33010602011771号