摘要: 八数码管Hdu 1043 The 15 puzzle has been around for over 100 years; even if you don't know it by that name, you've seen it. It is constructed with 15 slidi 阅读全文
posted @ 2020-04-08 16:06 痴痴那 阅读(116) 评论(0) 推荐(0)
摘要: Description 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k, 阅读全文
posted @ 2020-04-08 13:30 痴痴那 阅读(62) 评论(0) 推荐(0)
摘要: Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be fille 阅读全文
posted @ 2020-04-08 13:26 痴痴那 阅读(79) 评论(0) 推荐(0)