码迷,mamicode.com
首页 >  
搜索关键字:round    ( 15566个结果
codeforces round #262 (div2)
这个是前几天作的比赛,因为今晚上还有CF所以就把前几天写的东西总结一下。     460A  直接模拟题意,不过我在作的过程中一直担心余数会对结果产生影响。    #include #include using namespace std; int main() { int n,m; cin>>n>>m; for(int i=n;;i++) {...
分类:其他好文   时间:2014-08-26 13:41:28    阅读次数:228
BestCoder Round #6(1003)hdu4983(欧拉函数)
Goffi and GCD Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 412    Accepted Submission(s): 34 Problem Description Goffi is doin...
分类:其他好文   时间:2014-08-25 19:27:34    阅读次数:192
HDU 4982 Goffi and Squary Partition(BestCoder Round #6 1002)
贪心+数学调整,这里需要比较好的数学想法。当然自己通过推导选出各种情况也是可以的,不过可能稍微麻烦些!不过,这道题目不失为一道好题!...
分类:其他好文   时间:2014-08-25 17:03:54    阅读次数:120
Codeforces Round #257 (Div. 2)
C这题说的是给了一个 矩形然后可以在矩形中切来切去 问最后那个最小块的最大面积 可以推出公式 (n/(x+1))*(m/(y+1)) x y 分别是横切个纵切的刀数, 可以通过解二元函数算出极值 ,须要取整比赛的时候就把这种方法给去掉了 悲 活该绿名#include #include #includ...
分类:其他好文   时间:2014-08-25 16:45:34    阅读次数:151
线段树(I tree)
Codeforces Round #254 (Div. 2)E题这题说的是给了一个一段连续的区间每个区间有一种颜色然后一个彩笔从L画到R每个区间的颜色都发生了 改变然后 在L和R这部分区间里所用的颜色变成了x 然后每个区间的 色度加上abs(x-Yi) Yi 为原位置的颜色,还有一个操作就是求 L ...
分类:其他好文   时间:2014-08-25 16:39:14    阅读次数:273
Codeforces Round #FF (Div. 2)
D 题说的是给了一个矩阵 然后又k 次操作每次能把一整行 或者一整列 中的每个元素都减去p 然后 加上减去之前的该行和该列, 傻逼的我有没有做出来, 我们可以知道最后结果横的用了x次 竖的用了y次 那么他们用的先后顺序是没有影响的,然后预处理出 横取1 --- k次的最大值 和 竖取 1---k次的...
分类:其他好文   时间:2014-08-25 16:35:14    阅读次数:222
Codeforces Round #247 (Div. 2) C D
这题是一个背包问题 这样的 在一个k子树上 每个节点都有自己的k个孩子 然后 从原点走 走到 某个点的 和为 N 且每条的 长度不小于D 就暂停问这样的 路有多少条, 呵呵 想到了 这样做没有把他敲出来,可以很清楚的 到达第几层都能到达那些状态 然后 最多N层看看每层取到什么样的值 然后先算出没有任...
分类:其他好文   时间:2014-08-25 16:34:04    阅读次数:229
[BestCoder Round #6] hdu 4981 Goffi and Median (水题)
Goffi and Median Problem Description A median in a sequence with the length of n is an element which occupies position number ?n+12? after we sort the elements in the non-decreasing order ...
分类:其他好文   时间:2014-08-25 11:55:34    阅读次数:159
[BestCoder Round #6] hdu 4982 Goffi and Squary Partition(构造)
Goffi and Squary Partition Problem Description Recently, Goffi is interested in squary partition of integers.A set X of k distinct positive integers is called squary partition of n if and ...
分类:其他好文   时间:2014-08-25 11:52:45    阅读次数:208
hdu4982 Goffi and Squary Partition (DFS解法)
BestCoder Round #6Bhttp://acm.hdu.edu.cn/showproblem.php?pid=4982Goffi and Squary PartitionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/...
分类:其他好文   时间:2014-08-25 11:34:44    阅读次数:236
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!