摘要: 样例输出 解题思路: 由于第一个按钮是否按下会影响后面所有的按钮,因此枚举第一个按钮对应的两种情况。另外,如果按钮按下后和目标状态不相同,之前的情况已经枚举完毕,只需要按下下一个按钮即可。 代码: 阅读全文
posted @ 2019-05-23 19:41 郭怡柔 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 总时间限制: 5000ms 内存限制: 65536kB 描述 There is a square wall which is made of n*n small square bricks. Some bricks are white while some bricks are yellow. Bo 阅读全文
posted @ 2019-05-23 16:52 郭怡柔 阅读(242) 评论(0) 推荐(0) 编辑
摘要: There are nine clocks in a 3*3 array (figure 1). The goal is to return all the dials to 12 o'clock with as few moves as possible. There are nine diffe 阅读全文
posted @ 2019-05-23 16:46 郭怡柔 阅读(280) 评论(0) 推荐(0) 编辑