摘要: J - 组合 Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%lld & %llu J - 组合 Description 有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中 阅读全文
posted @ 2016-08-03 17:26 happy_codes 阅读(176) 评论(0) 推荐(0) 编辑
摘要: M - 基础DP Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u M - 基础DP Description Many years ago , in Teddy’s hometown there was a ma 阅读全文
posted @ 2016-08-03 10:34 happy_codes 阅读(139) 评论(0) 推荐(0) 编辑
摘要: hdu 1465 不容易系列之一(错排) hdu 1465 不容易系列之一(错排) 不容易系列之一 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 阅读全文
posted @ 2016-08-01 11:01 happy_codes 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 这一周学的图论,学了这么些 两种存图的方法:邻接矩阵( map[n][n] ) , 邻接表( headlis[n] , vector<int> G[n] )存图的方法,各有各的好,我的理解是,如果不是那种非常稠密的图,类似于完全图这样的图,邻接表一般会快很多,毕竟减少了边的遍历。 最小生成树 kru 阅读全文
posted @ 2016-07-31 18:30 happy_codes 阅读(217) 评论(0) 推荐(0) 编辑
摘要: H - Funny Car Racing Time Limit:1000MS Memory Limit:0KB 64bit IO Format:%lld & %llu H - Funny Car Racing Time Limit:1000MS Memory Limit:0KB 64bit IO F 阅读全文
posted @ 2016-07-28 18:43 happy_codes 阅读(208) 评论(0) 推荐(0) 编辑
摘要: D - Invitation Cards Time Limit:8000MS Memory Limit:262144KB 64bit IO Format:%lld & %llu Description In the age of television, not many people attend 阅读全文
posted @ 2016-07-28 11:00 happy_codes 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Frogger Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Frogger Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu 阅读全文
posted @ 2016-07-27 09:33 happy_codes 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Description 阅读全文
posted @ 2016-07-27 09:18 happy_codes 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Description Bess 阅读全文
posted @ 2016-07-27 09:06 happy_codes 阅读(190) 评论(0) 推荐(0) 编辑
摘要: C - 小Q系列故事——最佳裁判 Time Limit:200MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u C - 小Q系列故事——最佳裁判 Description 过去的2012年对小Q来说是很悲催的一年,失恋了12次,每次都要郁闷1个 阅读全文
posted @ 2016-07-22 18:10 happy_codes 阅读(130) 评论(0) 推荐(0) 编辑
摘要: M - Ordering Tasks Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu M - Ordering Tasks Time Limit:3000MS Memory Limit:0KB 64bit IO Forma 阅读全文
posted @ 2016-07-22 18:01 happy_codes 阅读(187) 评论(0) 推荐(0) 编辑
摘要: O - Can you find it? Time Limit:3000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u O - Can you find it? Time Limit:3000MS Memory Limit:10000KB 阅读全文
posted @ 2016-07-22 17:48 happy_codes 阅读(189) 评论(0) 推荐(0) 编辑
摘要: F - A Simple Problem with Integers Time Limit:5000MS Memory Limit:131072KB 64bit IO Format:%lld & %llu F - A Simple Problem with Integers Time Limit:5 阅读全文
posted @ 2016-07-21 16:52 happy_codes 阅读(167) 评论(0) 推荐(0) 编辑
摘要: I - Doing Homework again Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u I - Doing Homework again Time Limit:1000MS Memory Limit: 阅读全文
posted @ 2016-07-21 16:30 happy_codes 阅读(196) 评论(0) 推荐(0) 编辑
摘要: L - Points on Cycle Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u L - Points on Cycle Description There is a cycle with its cen 阅读全文
posted @ 2016-07-21 16:19 happy_codes 阅读(217) 评论(0) 推荐(0) 编辑
摘要: H - Frosh Week Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u H - Frosh Week Time Limit:1000MS Memory Limit:32768KB 64bit IO For 阅读全文
posted @ 2016-07-21 11:04 happy_codes 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 食物链 时间限制:1000 ms | 内存限制:65535 KB poj-1182 描述动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。 有人用两种说法对这N个 阅读全文
posted @ 2016-07-20 16:41 happy_codes 阅读(3893) 评论(0) 推荐(0) 编辑
摘要: B - The Suspects Time Limit:1000MS Memory Limit:20000KB 64bit IO Format:%lld & %llu B - The Suspects Description 严重急性呼吸系统综合症( SARS), 一种原因不明的非典型性肺炎,从20 阅读全文
posted @ 2016-07-19 17:16 happy_codes 阅读(224) 评论(0) 推荐(0) 编辑
摘要: E - I Hate It Time Limit:3000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u E - I Hate It Time Limit:3000MS Memory Limit:32768KB 64bit IO Forma 阅读全文
posted @ 2016-07-18 20:48 happy_codes 阅读(222) 评论(0) 推荐(0) 编辑
摘要: N - Broken Keyboard (a.k.a. Beiju Text) Time Limit:1000MS Memory Limit:0KB 64bit IO Format:%lld & %llu Description You’re typing a long text with a br 阅读全文
posted @ 2016-07-16 16:51 happy_codes 阅读(253) 评论(2) 推荐(0) 编辑