摘要:
Wannafly挑战赛4. B 题意:求子区间异或和,要求区间长度在l到r之间,并且为偶数 题解:对于每一位算贡献,可以分奇偶来记录,计算的时候只加上奇偶性相同的就保证了为偶数,从大于l的点开始每次++,从大于r的点每次--,记录二进制上所有权值和 代码: 阅读全文
摘要:
E. Counting Arrays time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output You are given two pos 阅读全文
摘要:
D. Flowers time limit per test 1.5 seconds memory limit per test 256 megabytes input standard input output standard output We saw the little game Marm 阅读全文
摘要:
1202 子序列个数 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 1202 子序列个数 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 1202 子序列个数 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 子序列的定义:对于一个序列a=a[1 阅读全文
摘要:
B. Mahmoud and Ehab and the bipartiteness time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outpu 阅读全文
摘要:
C. The Intriguing Obsession time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. The Intrig 阅读全文
摘要:
C. Short Program time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Petya learned a new pro 阅读全文
摘要:
D. Little Elephant and Broken Sorting time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Th 阅读全文
摘要:
组合数学: $$\sum\limits_{k = 1}^n {{{(2k 1)}^2} = \frac{{n(4{n^2} 1)}}{3}}$$ $$\sum\limits_{k = 1}^n {{{(2k 1)}^3} = {n^2}(2{n^2} 1)}$$ $${\sum\limits_{k 阅读全文
摘要:
Bomb Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1853 Accepted Submission(s): 608 Problem Des 阅读全文