码迷,mamicode.com
首页 >  
搜索关键字:round    ( 15566个结果
Codeforces Round #250 (Div. 1)B(排序+并查集)
B. The Child and Zoo time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Of course our child likes walking in a...
分类:编程语言   时间:2014-12-04 21:42:58    阅读次数:283
Codeforces Round #281 (Div. 2) 解题报告 A.B.C.D.
A - Vasya and Football 纯模拟。。比较坑的是会有不符合足球常识的地方。。 代码如下: #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define LL ...
分类:其他好文   时间:2014-12-04 21:39:17    阅读次数:290
Codeforces Round #277.5 (Div. 2)
A题意:给定n个数,最多交换n次获得一个不减的序列,求一个合法的交换序列。题解:每次找从i开始的最小值换到第i个位置就可以了。#include #include #include #include #include using namespace std;int a[5000],n,max1,max...
分类:其他好文   时间:2014-12-04 21:31:29    阅读次数:208
Codeforces Round #280 (Div. 2)
A. Vanya and Cubes手速不够快,被别人抢先了。。。#include#define eps 1e-9#define FOR(i,j,k) for(int i=j;in) { printf("%d\n",i-1); return 0; } } return 0;}B. Va...
分类:其他好文   时间:2014-12-04 21:26:42    阅读次数:270
Codeforces Round #281 (Div. 2) a
/** ?*?@brief?Codeforces?Round?#281?(Div.?2)?a ?*?@file?a.cpp ?*?@author?面码 ?*?@created?2014/12/04?17:49 ?*?@edited??2014/12/04?17:58 ?*?@type??implementation ?* ?*/ ...
分类:其他好文   时间:2014-12-04 20:11:35    阅读次数:163
Codeforces Round #281 (Div. 2) (A、B、C、D题)
昨天这场CF打的还挺爽的,不过就是没咋涨Rating,没把握好涨Rating的机会。。 本来可以过四题的,,但是很失败,重评后跪了两道。。唉:-( A. Vasya and Football 思路:给每个人计数,黄牌+1,红牌+2。 当数字第一次超过2时输出。 题目链接:A. Vasya and Football AC代码: #include #...
分类:其他好文   时间:2014-12-04 18:01:19    阅读次数:187
Codeforces Round #280 (Div. 2)
这场题简单的令人吃惊 ABC几乎都是签到题 D的话 把两个人的射击时间转化成整数 求个gcd,除一下。 假设两人的射击频率分别是1秒x,1秒y x,y的gcd为g 转化一下就相当于 第一个人 y/g 秒射一发, 第二个人x/g秒射一发 然后两个人在 x/g*y/g 秒时会同时射击 那么每个x/g*y/g秒就是一个周期了 假设怪物的血有a,那么a%(x+y)就是...
分类:其他好文   时间:2014-12-04 18:01:06    阅读次数:227
Codeforces Round #281 (Div. 2)
这场题也不难。 不过自己一直犯逗。 不是题目看错就是数组开小。 A,B,C,D都还挺水的,E其实也挺简单,只不过我当时没想明白。。 C的话, 枚举所有可能的d即可,复杂度是排序的nlogn D的话, 对于奇数来说,黑方只需要跟白方对称走就一定能赢 偶数的话, 白方往1,2走一步就变成了奇数的情况,然后黑方咋走,白方就对称走就行。所以最后白方一定能赢 E ...
分类:其他好文   时间:2014-12-04 17:58:41    阅读次数:152
Codeforces Round #280 (Div. 2) d
/** ?*?@brief?Codeforces?Round?#280?(Div.?2)?d ?*?@file?d.cpp ?*?@author?mianma ?*?@created?2014/12/02?14:38 ?*?@edited??2014/12/02?14:38 ?*?@type?math?brute?binary_sear...
分类:其他好文   时间:2014-12-04 14:08:32    阅读次数:193
Codeforces Round #280 (Div. 2) 解题报告 A.B.C.D.E.
不知道到底是我的水平提高了还是CF的题目变水了。。。。。。 A - Vanya and Cubes 水题。。暴力枚举就可以。。 代码如下: #include #include #include #include #include #include #include #include #include #include #include using namespa...
分类:其他好文   时间:2014-12-03 21:29:43    阅读次数:165
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!