摘要: 1519. Formula 1 Time limit: 1.0 secondMemory limit: 64 MB Background Regardless of the fact, that Vologda could not get rights to hold the Winter Olym 阅读全文
posted @ 2017-01-08 16:36 №〓→龙光← 阅读(1394) 评论(0) 推荐(0) 编辑
摘要: D. Fedor and coupons time limit per test 4 seconds memory limit per test 256 megabytes input standard input output standard output D. Fedor and coupon 阅读全文
posted @ 2017-01-07 01:02 №〓→龙光← 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 1019: [SHOI2008]汉诺塔 Description 汉诺塔由三根柱子(分别用A B C表示)和n个大小互不相同的空心盘子组成。一开始n个盘子都摞在柱子A上,大的在下面,小的在上面,形成了一个塔状的锥形体。 对汉诺塔的一次合法的操作是指:从一根柱子的最上层拿一个盘子放到另一根柱子的最上层, 阅读全文
posted @ 2017-01-06 20:52 №〓→龙光← 阅读(354) 评论(0) 推荐(0) 编辑
摘要: E. Santa Claus and Tangerines time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output E. Santa C 阅读全文
posted @ 2016-12-26 16:49 №〓→龙光← 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 4517: [Sdoi2016]排列计数 Description 求有多少种长度为 n 的序列 A,满足以下条件: 1 ~ n 这 n 个数在序列中各出现了一次 若第 i 个数 A[i] 的值为 i,则称 i 是稳定的。序列恰好有 m 个数是稳定的 满足条件的序列可能很多,序列数对 10^9+7 取 阅读全文
posted @ 2016-12-25 15:53 №〓→龙光← 阅读(187) 评论(0) 推荐(0) 编辑
摘要: C. Hongcow Buys a Deck of Cards time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Hongc 阅读全文
posted @ 2016-12-24 17:38 №〓→龙光← 阅读(594) 评论(1) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #define yyj(s) freopen(s".in","r",stdin),freopen(s".out","w",stdout); 11 #... 阅读全文
posted @ 2016-11-06 16:00 №〓→龙光← 阅读(205) 评论(2) 推荐(0) 编辑
摘要: C. Destroying Array time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given an arra 阅读全文
posted @ 2016-10-02 14:59 №〓→龙光← 阅读(327) 评论(0) 推荐(0) 编辑
摘要: D. Generating Sets time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given a set Y 阅读全文
posted @ 2016-10-02 14:53 №〓→龙光← 阅读(594) 评论(0) 推荐(0) 编辑
摘要: 3436: 小K的农场 Description 背景 小K是个特么喜欢玩MC的孩纸。。。 描述 小K在MC里面建立很多很多的农场,总共n个,以至于他自己都忘记了每个农场中种植作物的具体数量了,他只记得 一些含糊的信息(共m个),以下列三种形式描述:农场a比农场b至少多种植了c个单位的作物,农场a比农 阅读全文
posted @ 2016-09-28 16:59 №〓→龙光← 阅读(309) 评论(0) 推荐(0) 编辑