2013年7月9日
摘要: 题目链接。分析:用的《训练指南》上的方法。详见P17.从6个面中选一个做顶面,再从剩下的4个面中选1个做正面,则此正方体唯一确定。需要枚举共6*4=24种。#include #include #include #include #include #include #include #include using namespace std;const int maxn = 1000;int _left[6] = {4, 0, 2, 3, 5, 1};int up[6] = {2, 1, 5, 0, 4, 3};char s1[maxn], s2[maxn], s[maxn];void rot(i 阅读全文
posted @ 2013-07-09 13:21 Still_Raining 阅读(1227) 评论(1) 推荐(0) 编辑