摘要: 题目大意: 给两个正6面体,问二者是否等价,每个面都用6个字母表示; 解题思路: 固定一个面旋转,有四种可能,一共固定6个面; #include #include #include using namespace std;const int N=20;char str[N],str1[N],st... 阅读全文
posted @ 2016-09-22 17:48 hong-ll 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 题目大意: 有n行n列(2#include #include #include #include #include using namespace std;int H[10][10];int V[10][10];int main(){ int n,m,x,y,T = 0; char c; w... 阅读全文
posted @ 2016-09-22 17:11 hong-ll 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 题目大意就是: 一个象棋残局,红方有n(2#include#include#includeusing namespace std;char cb[12][10],ab[12][10];void RG(int a,int b){ //判断帅和车能到达的地方 int c; for(c=a-1;c... 阅读全文
posted @ 2016-09-22 15:31 hong-ll 阅读(124) 评论(0) 推荐(0) 编辑