
codeforces
文章平均质量分 91
Lazer2001
天涯何处无芳草
只是白兔寻不到
展开
-
Codeforces Educational Codeforces Round 21 [5.30] Tea Party&Array Division&Average Sleep Time&Lucky
大家都很强, 可与之共勉A. Lucky Year time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Apart from having lots of holidays throughout the year, residents原创 2017-05-30 17:23:21 · 2769 阅读 · 0 评论 -
CF被裱了之后很不开心,明明都是我手打的......
根据我专业的分许,是没有一个很有写的模板。于是,做了一下午…# include <map> # include <set> # include <cmath> # include <ctime> # include <queue> # include <stack> # include <bitset> # include <cctype> # include <cstdio> # include原创 2017-10-17 16:52:01 · 326 阅读 · 0 评论 -
Codeforces 662C Binary Table FWT 快速沃尔什变换
大家都很强, 可与之共勉 。 题意: 给出一个n(n≤20)n(n≤20)行m(m≤105)m(m≤10^5)列的0101矩阵。每次操作可以将某一行取反或者将某一列取反。要求操作后的矩阵中的11的个数最少,求最小个数。 题解: 我们会发现行数很小,是一个可以状态压缩的范围(滑稽)。 于是我萌就状压行 对于每一列,用statestate表示这一列的状态,若第ii位为11,原创 2017-12-20 21:34:44 · 494 阅读 · 0 评论