摘要: A:热手题 1 #include <iostream> 2 #include <cstdlib> 3 #include <cstdio> 4 #include <algorithm> 5 #include <string> 6 #include <cstring> 7 #include <cmath 阅读全文
posted @ 2017-06-10 17:44 LoveYayoi 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 唔,D:概率最多是 $ \frac{1}{2} $ ,在n==1000的时候这个阈值大概是7284,O(7284n)即可 1 #include <iostream> 2 #include <cstdlib> 3 #include <cstdio> 4 #include <algorithm> 5 # 阅读全文
posted @ 2017-06-10 17:28 LoveYayoi 阅读(168) 评论(0) 推荐(0) 编辑
摘要: AB跳过,B实在没心情改了 C. An impassioned circulation of affection time limit per test 2 seconds memory limit per test 256 megabytes input standard input output 阅读全文
posted @ 2017-06-08 12:45 LoveYayoi 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 居然水了一天时间才做完这套题。。。 A. The Contest time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. The 阅读全文
posted @ 2017-06-06 18:34 LoveYayoi 阅读(172) 评论(0) 推荐(0) 编辑
摘要: M. April Fools' Problem (easy) time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output The marmo 阅读全文
posted @ 2017-06-05 15:22 LoveYayoi 阅读(173) 评论(0) 推荐(0) 编辑
摘要: J. Send the Fool Further! (easy) time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Heidi's 阅读全文
posted @ 2017-06-04 16:53 LoveYayoi 阅读(271) 评论(0) 推荐(0) 编辑
摘要: A. Heidi and Library (easy) time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Heidi and 阅读全文
posted @ 2017-06-03 17:33 LoveYayoi 阅读(160) 评论(0) 推荐(0) 编辑
摘要: time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output time limit per test 2 seconds time limit 阅读全文
posted @ 2017-06-02 17:54 LoveYayoi 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 题目描述 输入输出格式 输入格式: 本题包含多组数据。 第一行:一个整数T,表示数据的个数。 对于每组数据: 第一行:两个整数,N和K(含义如题目表述)。 接下来N行:每行一个字符串。 输出格式: 1 2 1 a? ?b 输入输出样例 输入样例#1: 50 输出样例#1: 对于30%的数据,T ≤ 阅读全文
posted @ 2017-06-02 13:32 LoveYayoi 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 题目描述 小E 与小W 进行一项名为“E&D”游戏。 游戏的规则如下: 桌子上有2n 堆石子,编号为1..2n。其中,为了方便起见,我们将第2k-1 堆与第2k 堆 (1 ≤ k ≤ n)视为同一组。第i堆的石子个数用一个正整数Si表示。 一次分割操作指的是,从桌子上任取一堆石子,将其移走。然后分割 阅读全文
posted @ 2017-06-01 20:59 LoveYayoi 阅读(304) 评论(0) 推荐(0) 编辑