摘要: Description Ignatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会. 魔王住在一个城堡里,城堡是一个A*B*C的立方体,可以被表示成A个B*C的矩阵,刚开始Ignatius被关在(0,0,0)的位置,离开城堡的门在(A-1,B-1,C-1)的位置,现在知道魔 阅读全文
posted @ 2016-01-24 23:31 nicetomeetu 阅读(223) 评论(0) 推荐(0)
摘要: Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You m 阅读全文
posted @ 2016-01-24 22:58 nicetomeetu 阅读(205) 评论(0) 推荐(0)
摘要: Problem Description 呃......变形课上Harry碰到了一点小麻烦,因为他并不像Hermione那样能够记住所有的咒语而随意的将一个棒球变成刺猬什么的,但是他发现了变形咒语的一个统一规律:如果咒语是以a开头b结尾的一个单词,那么它的作用就恰好是使A物体变成B物体. Harry已 阅读全文
posted @ 2016-01-24 21:40 nicetomeetu 阅读(284) 评论(0) 推荐(0)
摘要: Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 23092 Accepted: 8985 Description You are trapped in a 3D dungeon and need to find the quick 阅读全文
posted @ 2016-01-24 20:25 nicetomeetu 阅读(178) 评论(0) 推荐(0)