上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: Wannafly挑战赛4. B 题意:求子区间异或和,要求区间长度在l到r之间,并且为偶数 题解:对于每一位算贡献,可以分奇偶来记录,计算的时候只加上奇偶性相同的就保证了为偶数,从大于l的点开始每次++,从大于r的点每次--,记录二进制上所有权值和 代码: 阅读全文
posted @ 2017-12-02 21:18 thges 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-11-28 23:13 thges 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-11-02 14:32 thges 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 1202 子序列个数 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 1202 子序列个数 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 1202 子序列个数 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 子序列的定义:对于一个序列a=a[1 阅读全文
posted @ 2017-11-02 13:33 thges 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-10-31 23:55 thges 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-10-27 16:36 thges 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-10-27 13:20 thges 阅读(371) 评论(0) 推荐(1) 编辑
摘要: 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 阅读全文
posted @ 2017-10-20 23:04 thges 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 组合数学: $$\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 阅读全文
posted @ 2017-10-17 01:36 thges 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-10-13 19:06 thges 阅读(127) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页