随笔分类 -  常量数组

摘要:Patrol Robot这个题还是DFS,不过每个状态除了记录位置之外,还要记录剩余穿越次数,这样一来就变成了三维DFS。对于值为1的点如果剩余穿越次数大于0且该状态未遍历过的话也可以访问。像这种四个方向的话用常量数组比较方便,没必要搞个二重循环,容易出bug。#in... 阅读全文
posted @ 2018-08-10 00:57 ACLJW 阅读(178) 评论(0) 推荐(0)
摘要:253:Cube painting开始的想法:骰子无论怎么转,每个数字和其对面的数字的对应关系永远不会改变,所以只需要比较两个骰子的三对数字是否相同即可,也的确AC了,但是后来想想不太对。#include#includeusing namespace std;char... 阅读全文
posted @ 2018-04-12 12:43 ACLJW 阅读(146) 评论(0) 推荐(0)
摘要:A children’s puzzle that was popular 30 years ago consisted of a 5×5 frame which contained 24 smallsquares of equal size. A unique let... 阅读全文
posted @ 2018-04-05 13:18 ACLJW 阅读(244) 评论(0) 推荐(0)
摘要:An organic compound is any member of a large class of chemicalcompounds whose molecules contain carbon. The molarmass of an organic co... 阅读全文
posted @ 2018-04-04 22:11 ACLJW 阅读(138) 评论(0) 推荐(0)
摘要:PalindromesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1253 Accepted Su... 阅读全文
posted @ 2018-04-03 23:18 ACLJW 阅读(142) 评论(0) 推荐(0)
摘要:WERTYUTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9533 Accepted: 4543Description A common typing error is to place the h... 阅读全文
posted @ 2018-04-03 23:16 ACLJW 阅读(180) 评论(0) 推荐(0)