码迷,mamicode.com
首页 >  
搜索关键字:codeforces 466b    ( 12211个结果
【#254_DIV2】-A B C
codeforces #254 div.2 A B C 解题报告 题解...
分类:其他好文   时间:2014-07-08 20:29:40    阅读次数:215
Codeforces 444C DZY Loves Colors 水线段树
题目链接:点击打开链接 水。。 #include #include #include #include #include #include #include #include using namespace std; #define ll long long #define L(x) (x<<1) #define R(x) (x<<1|1) #define N 100005 i...
分类:其他好文   时间:2014-07-08 18:23:14    阅读次数:164
Codeforces 444C(线段树)
区间颜色不一致就更新到底,否则lazy标记 #include #include #include #include using namespace std; #define lc l,m,index<<1 #define rc m+1,r,index<<1|1 #define N 100005 #define ll __int64 struct node { bool same; ll c...
分类:其他好文   时间:2014-07-08 18:00:56    阅读次数:226
CodeForces 445B. DZY Loves Chemistry(并查集)
CodeForces 445B. DZY Loves Chemistry(并查集)...
分类:其他好文   时间:2014-07-08 17:04:08    阅读次数:190
codeforces#254DIV2解题报告
今天简直大爆发啊。。。吃了顿烧烤居然这么管事。。。。。本弱渣居然做出来了3道,而且B题是我第一次在CF中用到算法。。(以前最多也就是贪心。。。)。 题目地址:codeforces#225 A题: 水题。。不解释。。5分钟1Y。 代码如下: #include #include #include #include #include #include #include using...
分类:其他好文   时间:2014-07-08 16:22:17    阅读次数:118
Codeforces Round #254 (Div. 1)-A,B
A:选取两点一边就可以了,很明显可以想出来。。。 但是一开始看错题了,sad、、、、 #include #include #include #include #include #include using namespace std; #define eps 1e-6 #define zero(x) ((fabs(x)<eps?0:x)) #define maxn 550 int val[ma...
分类:其他好文   时间:2014-07-08 15:55:50    阅读次数:212
Codeforces D. Giving Awards 412 题解
就是按照一定顺序输出排序。 比如a欠b的钱就不能先输出a然后输出b。 本题的技巧就是,要求的是不能先输出a然后输出b,但是可以先输出b然后输出a。 故此可以按照a欠b的钱的关系,建立图,然后DFS深度优先搜索,然后逆向记录点,输出这些逆向点,也就是a欠b的钱,就先输出b然后输出a,那么这个顺序就满足要求了。 很狡猾的题意。要细心。不然就搞半天都白搞了。 题目连接:http://codef...
分类:其他好文   时间:2014-07-08 15:17:14    阅读次数:143
Codeforces Rounds #254 div2:A,B,C
7.6日2014 codeforces round #254...
分类:其他好文   时间:2014-07-08 14:28:39    阅读次数:188
(CF)Codeforces445A DZY Loves Chessboard(纯实现题)
Codeforces445A DZY Loves Chessboard(纯实现题)...
分类:其他好文   时间:2014-07-08 13:37:21    阅读次数:168
Codeforces 444B DZY Loves FFT(概率)
题目连接:Codeforces 444B DZY Loves FFT 题目大意:根据题目的算法生成a,b数组,然后对于每个长度的l,求a[i]*b[l-i]的最大值。 解题思路:概率问题,枚举前30大的数,如果有就可以直接输出答案,如果没有,就暴力枚举b数组为1的位置找最大值。 #include #include #include using namespace std; t...
分类:其他好文   时间:2014-07-08 10:41:58    阅读次数:197
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!