摘要: 题目链接 Problem Description Ignatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会.魔王住在一个城堡里,城堡是一个A*B*C的立方体,可以被表示成A个B*C的矩阵,刚开始Ignatius被关在(0,0,0)的位置,离开城堡的门在(A-1,B-1,C 阅读全文
posted @ 2016-01-28 22:33 ACMSaga 阅读(191) 评论(0) 推荐(0)
摘要: 题目链接 Problem Description Given a specified total t and a list of n integers, find all distinct sums using numbers from the list that add up to t. For 阅读全文
posted @ 2016-01-28 22:26 ACMSaga 阅读(158) 评论(0) 推荐(0)
摘要: 题目链接 Problem Description Now,given the equation 8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y,can you find its solution between 0 and 100;Now please try your l 阅读全文
posted @ 2016-01-28 22:17 ACMSaga 阅读(247) 评论(0) 推荐(0)
摘要: 题目链接 题解:题意为给出一个N*M的矩阵,然后(i∗2,j∗2) (i,j=0,1,2...)的点处是数字,两个数字之间是符号,其他位置是‘#’号。 但不知道是理解的问题还是题目描述的问题,数据中还有类似1#1这种数据存在,因此WA了4次,加上了一句代码后,马上AC了,该行代码在下文以斜粗体标出。 阅读全文
posted @ 2016-01-28 14:22 ACMSaga 阅读(190) 评论(0) 推荐(0)