上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 32 下一页
摘要: C题 Problem C Game Map 思路: 之前暴力搜索写了好几发,一直超时,后面看其他人的题解发现要用记忆化搜索。。直接暴力搜的话有太多重 复的计算。 dist u 表示以u 为起点所能走的最长路径,通过dfs不断递归能获得以u为起点的最长路径,这条路径上的每个点 的dist必定是最大的( 阅读全文
posted @ 2018-02-10 15:53 冥想选手 阅读(508) 评论(0) 推荐(0) 编辑
摘要: A. Alex and broken contest time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output One day Alex 阅读全文
posted @ 2018-02-08 16:13 冥想选手 阅读(338) 评论(0) 推荐(0) 编辑
摘要: A. Modular Exponentiation time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output The following p 阅读全文
posted @ 2018-01-12 10:48 冥想选手 阅读(313) 评论(0) 推荐(0) 编辑
摘要: A. Nearest Minimums time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given an arr 阅读全文
posted @ 2018-01-01 19:43 冥想选手 阅读(448) 评论(0) 推荐(1) 编辑
摘要: Just a Hook Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 36705 Accepted Submission(s): 17920 P 阅读全文
posted @ 2017-12-20 20:04 冥想选手 阅读(205) 评论(0) 推荐(1) 编辑
摘要: C. Cheap Kangaroo time limit per test 1.0 s memory limit per test 256 MB input standard input output standard output There are N kangaroos going out t 阅读全文
posted @ 2017-12-19 21:30 冥想选手 阅读(462) 评论(0) 推荐(0) 编辑
摘要: H. Hit! time limit per test 1.0 s memory limit per test 256 MB input standard input output standard output "Hit!" is a popular game in ancient Bytelan 阅读全文
posted @ 2017-12-07 19:46 冥想选手 阅读(362) 评论(0) 推荐(0) 编辑
摘要: In the age of television, not many people attend theater performances. Antique Comedians of Malidinesia are aware of this fact. They want to propagate 阅读全文
posted @ 2017-12-06 20:41 冥想选手 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 昂贵的聘礼 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 51879 Accepted: 15584 Description 年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用1000 阅读全文
posted @ 2017-11-29 17:14 冥想选手 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Stockbrokers are known to overreact to rumours. You have been contracted to develop a method of spreading disinformation amongst the stockbrokers to g 阅读全文
posted @ 2017-11-28 15:40 冥想选手 阅读(229) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 32 下一页