上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
摘要: ACM小组的Samsara和Staginner对中国象棋特别感兴趣,尤其对马(可能是因为这个棋子的走法比较多吧)的使用进行深入研究。今天他们又在 构思一个古怪的棋局:假如Samsara只有一个马了,而Staginner又只剩下一个将,两个棋子都在棋盘的一边,马不能出这一半棋盘的范围,另外这 一半棋盘 阅读全文
posted @ 2017-07-31 20:23 西北会法语 阅读(370) 评论(0) 推荐(0) 编辑
摘要: Recently, Mike was very busy with studying for exams and contests. Now he is going to chill a bit by doing some sight seeing in the city. City consist 阅读全文
posted @ 2017-07-31 20:22 西北会法语 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M <= 200) matrix. There are WALLs, ROADs, and 阅读全文
posted @ 2017-07-31 20:19 西北会法语 阅读(185) 评论(0) 推荐(0) 编辑
摘要: The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of 阅读全文
posted @ 2017-07-31 20:17 西北会法语 阅读(132) 评论(0) 推荐(0) 编辑
摘要: There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he c 阅读全文
posted @ 2017-07-31 20:15 西北会法语 阅读(178) 评论(0) 推荐(0) 编辑
摘要: Description 对于csuxushu来说,能够在CSU(California State University)组织2017年的ACM暑期集训让他感到十分荣幸。 csuxushu是一名充满梦想的程序员,因此他也希望来参加暑期集训的ACM萌新们和他一样怀揣着书写CSU-ACM历史的梦想。 一个 阅读全文
posted @ 2017-07-29 18:03 西北会法语 阅读(357) 评论(0) 推荐(0) 编辑
摘要: Given a set of sticks of various lengths, is it possible to join them end-to-end to form a square? InputThe first line of input contains N, the number 阅读全文
posted @ 2017-07-28 20:11 西北会法语 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Given four numbers, can you get twenty-four through the addition, subtraction, multiplication, and division? Each number can be used only once. Input 阅读全文
posted @ 2017-07-28 20:09 西北会法语 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。 你的任务是,对于给定的N,求出有多少种合法的放置方法。 Input共有若干行,每行一个正整数N≤10,表示棋盘和皇后的数量;如果N=0,表示结束。Output共有若 阅读全文
posted @ 2017-07-28 20:06 西北会法语 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 描述 在参与过了美食节之后,小Hi和小Ho在别的地方又玩耍了一阵子,在这个过程中,小Ho得到了一个非常有意思的玩具——一棵由小球和木棍连接起来的二叉树! 小Ho对这棵二叉树爱不释手,于是给它的每一个节点都标记了一个标号——一个属于A..Z的大写字母,并且没有任意两个节点的标号是一样的。小Hi也瞅准了 阅读全文
posted @ 2017-07-28 20:04 西北会法语 阅读(191) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页