2009年5月31日

SPOJ54(Julka)

摘要: 54. Julka Problem code: JULKA Julka surprised her teacher at preschool by solving the following riddle: Klaudia and Natalia have 10 apples together, but Klaudia has two apples more than Natalia. ... 阅读全文

posted @ 2009-05-31 19:58 Xredman 阅读(359) 评论(0) 推荐(0) 编辑

POJ2808(校门外的树 )

摘要: 校门外的树 Time Limit:1000MS Memory Limit:65536KTotal Submit:4824 Accepted:2091 Description某校大门外长度为L的马路上有一排树,每两棵相邻的树之间的间隔都是1米。我们可以把马路看成一个数轴,马路的一端在数轴0的位置,另一端在L的位置;数轴上的每个整数点,即0,1,2,……,L,都种有一棵树。 马路上有一些区域要用来... 阅读全文

posted @ 2009-05-31 17:38 Xredman 阅读(375) 评论(0) 推荐(0) 编辑

POJ1657(Distance on Chessboard)

摘要: Distance on Chessboard Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 12922 Accepted: 4509 Description 国际象棋的棋盘是黑白相间的8 * 8的方格,棋子放在格子中间。如下图所示: 王、后、车、象的走子规则如下: 王:横、直、斜都可以走,但每步限走一格。 后:... 阅读全文

posted @ 2009-05-31 16:35 Xredman 阅读(256) 评论(0) 推荐(0) 编辑

导航