随笔分类 -  SRM

摘要:Problem Statement Definition Limits Constraints Examples 题意:从1到100挑出K个数字,挑出的数字可正可负,求一种总和不为N的方案. 分析:如果N为奇数,那么选前K个最小的偶数一定不会组成奇数.类似的,如果N不是3的倍数,那么选择前K个最小的 阅读全文
posted @ 2016-05-18 10:48 Running_Time 阅读(258) 评论(0) 推荐(0)
摘要:Problem Statement You are a genealogist specializing in family trees of vampires. Vampire family trees differ from human family trees. In particular, 阅读全文
posted @ 2015-12-01 14:19 Running_Time 阅读(217) 评论(0) 推荐(0)
摘要:Problem Statement Cat Noku has just finished writing his first computer program. Noku's computer has m memory cells. The cells have addresses 0 throug 阅读全文
posted @ 2015-09-12 19:17 Running_Time 阅读(231) 评论(0) 推荐(0)