Try Again
上一页 1 2 3 4 5 6 7 8 9 ··· 37 下一页
摘要: Maximum Multiple Problem DescriptionGiven an integer n, Chiaki would like to find three positive integers x, y and z such that: n=x+y+z, x∣n, y∣n, z∣n 阅读全文
posted @ 2018-07-23 17:20 十年换你一句好久不见 阅读(1046) 评论(0) 推荐(0) 编辑
摘要: B:Battle Royale Battle Royale games are the current trend in video games and Gamers Concealed Punching Circles (GCPC) is the most popular game of them 阅读全文
posted @ 2018-07-19 19:34 十年换你一句好久不见 阅读(640) 评论(0) 推荐(0) 编辑
摘要: Vitaly works at the warehouse. The warehouse can be represented as a grid of n × m cells, each of which either is free or is occupied by a container. 阅读全文
posted @ 2018-07-16 21:36 十年换你一句好久不见 阅读(295) 评论(0) 推荐(0) 编辑
摘要: Description Michael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 1 2 阅读全文
posted @ 2018-07-15 15:20 十年换你一句好久不见 阅读(367) 评论(0) 推荐(0) 编辑
摘要: &运算 将两个数转化为二进制后,对应的位置上相同即取,通常取1,所以&通常情况下可以用来枚举子集 设x为表示集合的整数,那么这个整数有如下性质: x的子集整数y在数值上不会比x大。因为x的子集y只是保留了x某些位置上的1,所以y总可以加上一个非负的整数z等于x,相当于把没选的1补上。 根据这个性质可 阅读全文
posted @ 2018-07-14 11:15 十年换你一句好久不见 阅读(861) 评论(0) 推荐(0) 编辑
摘要: Problem Description Claire and her little friend, ykwd, are travelling in Shevchenko's Park! The park is beautiful - but large, indeed. N feature spot 阅读全文
posted @ 2018-07-13 18:44 十年换你一句好久不见 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 树上面最长简单路(无环),就是树的直径问题 解决办法 一开始任取一个点u进行搜索查找出距离点u最远距离的点v和长度 第二次dfs则从第一次中的v找出距离点v最远距离的点的路径长度 Cow Marathon Description After hearing about the epidemic of 阅读全文
posted @ 2018-07-13 18:27 十年换你一句好久不见 阅读(182) 评论(0) 推荐(0) 编辑
摘要: Since Sonya has just learned the basics of matrices, she decided to play with them a little bit. Sonya imagined a new type of matrices that she called 阅读全文
posted @ 2018-07-13 16:13 十年换你一句好久不见 阅读(474) 评论(0) 推荐(0) 编辑
摘要: Divisions David is a young boy and he loves numbers. Recently he learned how to divide two numbers.David divides the whole day. He is happy if the res 阅读全文
posted @ 2018-07-12 20:12 十年换你一句好久不见 阅读(419) 评论(0) 推荐(0) 编辑
摘要: D:Lift Problems On the ground floor (floor zero) of a large university building a number of students are wait- ing for a lift. Normally, the lift stop 阅读全文
posted @ 2018-07-11 16:02 十年换你一句好久不见 阅读(220) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 37 下一页