计算方法
文章平均质量分 81
码代码的猿猿的AC之路
人一我百,人十我万追逐青春的梦想,怀着自信的心,永不放弃
展开
-
CodeForces 366 E. Dima and Magic Guitar
E. Dima and Magic Guitartime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDima loves Inna very much. He deci原创 2013-11-26 19:11:04 · 2162 阅读 · 0 评论 -
Codeforce 453 C. Little Pony and Summer Sun Celebration
从一个奇数点开始走(对森林统一考虑),如果走过一个偶数点在回溯回来的时候,再重复走一下这一段把标记消掉,奇数就不用了。C. Little Pony and Summer Sun Celebrationtime limit per test1 secondmemory limit per test256 megabytesi原创 2014-08-03 11:18:57 · 1166 阅读 · 0 评论 -
Codeforces 196 C. Paint Tree
分治,选最左上的点分给根,剩下的极角排序后递归C. Paint Treetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou ar原创 2014-08-05 00:02:10 · 1592 阅读 · 0 评论 -
Codeforces 155 C.Double Profiles
hash+sortC. Double Profilestime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have been o原创 2014-08-02 22:11:22 · 1000 阅读 · 0 评论 -
HDOJ 4876 ZCC loves cards
枚举组合,在不考虑连续的情况下判断是否可以覆盖L...R,对随机数据是一个很大的减枝.通过检测的暴力计算一遍ZCC loves cardsTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1346 Acc原创 2014-07-25 22:14:59 · 1376 阅读 · 0 评论 -
Codeforces 448 D. Multiplication Table
二分判定答案D. Multiplication Tabletime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputBizon the Champion i原创 2014-07-18 07:58:47 · 1435 阅读 · 0 评论 -
CSU 1411: Longest Consecutive Ones
关键是通过预处理吧每个区间内的一移动到一起的最少步骤算出来....1411: Longest Consecutive OnesTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 185 Solved: 40[Submit][Status][Web Board]DescriptionGiven a原创 2014-04-27 20:49:11 · 1485 阅读 · 0 评论 -
Codeforces 420 C. Bug in Code
C. Bug in Codetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputRecently a serious bug has been found in the原创 2014-04-23 16:02:07 · 1600 阅读 · 0 评论 -
CodeForces 414 C. Mashmokh and Reverse Operation
简易的归并排序处理出每一层可能的逆序数,对于反转q层,相当于q层及以下的数都反转。。。然后求所有的逆序对和。。。。C. Mashmokh and Reverse Operationtime limit per test4 secondsmemory limit per test512 megabytesinputsta原创 2014-04-07 23:03:02 · 1609 阅读 · 0 评论 -
CodeForces 372B. Counting Rectangles is Fun
B. Counting Rectangles is Funtime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is an n × m rectangular原创 2013-12-16 23:21:03 · 1632 阅读 · 0 评论 -
HDOJ 4915 Multiplication table
可以特判出0和1,再统计每行出现了多少种十位上的数就可以了....没有考虑2的情况似乎也过了......Multiplication tableTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 800 A原创 2014-09-11 01:28:32 · 1357 阅读 · 0 评论