摘要: 1.18 练习赛第一场。第一场比赛状态很不好,很多人不到3小时就AK,而我因为B、C两题题目读错导致心态变差,最后只A了4道题。可见读题十分重要,如果一下子做不出来,或是WA了,却又有很多人AC,那么切记重新读题,千万不能漏了关键信息。 1.19 Codeforces Round #392 (Div 阅读全文
posted @ 2017-02-14 10:39 hnqw1214 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 线段树单点修改区间查询 线段树同时维护和、最大值、最小值 线段树区间取模(平方)区间查询 最短路spfa 2-SAT稳定党员 欧几里得与扩展欧几里得 中国剩余定理 字典树 匈牙利算法 LCA Tarjan算法 Tarjan强连通分量 KMP算法 扩展KMP(最长公共前缀) 数位DP 组合数取模luc 阅读全文
posted @ 2017-02-03 12:52 hnqw1214 阅读(1320) 评论(0) 推荐(0) 编辑
摘要: 链接 http://acmclub.win 阅读全文
posted @ 2017-07-15 22:46 hnqw1214 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Cooking Schedule Problem Code: SCHEDULE Chef is a well-known chef, and everyone wishes to taste his dishes. Cooking Schedule Problem Code: SCHEDULE Ch 阅读全文
posted @ 2017-04-05 16:41 hnqw1214 阅读(278) 评论(0) 推荐(0) 编辑
摘要: C. The Game Of Parity time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. The Game Of Pari 阅读全文
posted @ 2017-04-05 15:01 hnqw1214 阅读(212) 评论(0) 推荐(0) 编辑
摘要: C. Chris and Road time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Chris and Road time 阅读全文
posted @ 2017-04-05 13:54 hnqw1214 阅读(278) 评论(0) 推荐(0) 编辑
摘要: C. Constellation time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Constellation time l 阅读全文
posted @ 2017-03-22 22:25 hnqw1214 阅读(270) 评论(0) 推荐(0) 编辑
摘要: A. Gerald's Hexagon time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Gerald's Hexagon 阅读全文
posted @ 2017-03-22 22:05 hnqw1214 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 题意:给出n张牌,标号为1-n,然后给出两个序列,序列1表示序列1,2,3,4……,n洗一次牌后到达的,序列2表示目标序列,问初始序列按序列1的洗牌方式洗几次能到达序列2的情况,如果不能到达输出-1。 题解:在初始序列和序列1的变换中找出1能变到那些牌,这些牌构成一个集合,这些集合中的牌必然是能够相 阅读全文
posted @ 2017-03-22 21:59 hnqw1214 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 练习赛过程回放: 开场先看最后一题, 发现是专题训练时做过的网络流原题, cst照着之前的打一遍,第一遍WA, 发现数组开小了,改大后AC。 这时候qw看B题, 一开始想不到方法, cst看了下是BFS, 这时qw开敲,MLE。 然后把数组开小一位,WA。 后来想了想不能直接把字符串存队列里, 改成 阅读全文
posted @ 2017-03-05 16:09 hnqw1214 阅读(148) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; #define REP(i, n) for(int i(0); i = (b); --i) #define for_edge(i, x) for(int i = H[x]; i; i = X[i]) #define LL long long #define ULL ... 阅读全文
posted @ 2017-03-05 13:29 hnqw1214 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 2017/3/4 12:00-17:00 Solve 9 / 13 Penalty 717 练习赛过程回放: 开场5分中J题签到(cst) 12分钟时qw签到A 这时qw继续开写M,WA,检查代码。 接着czy写B,cst在旁边检查,及时纠正可能导致爆int的错误。 38分钟czy交C,1Y。 三人 阅读全文
posted @ 2017-03-05 10:19 hnqw1214 阅读(153) 评论(0) 推荐(0) 编辑