随笔分类 -  Codeforces

上一页 1 2 3 4 5 6 ··· 8 下一页
摘要:水A- Bulbs#include using namespace std;typedef long long ll;const int N = 1e5 + 5;const int INF = 0x3f3f3f3f;bool vis[110];int main(void) { memset (vis... 阅读全文
posted @ 2016-01-10 19:32 Running_Time 阅读(194) 评论(0) 推荐(0)
摘要:水A - Saitama Destroys Hotel简单的模拟,小贪心。其实只要求max (ans, t + f);#include using namespace std;#define lson l, mid, o r.f || (f == r.f && t 0 && i a[i].f)... 阅读全文
posted @ 2015-12-24 21:33 Running_Time 阅读(194) 评论(0) 推荐(0)
摘要:水A - Magic Spheres这题也卡了很久很久,关键是“至少”,所以只要判断多出来的是否比需要的多就行了。#include using namespace std;#define lson l, mid, o = less) puts ("Yes"); else puts ("No"); ... 阅读全文
posted @ 2015-12-13 11:17 Running_Time 阅读(207) 评论(0) 推荐(0)
摘要:水A - Uncowed Forces#include using namespace std;typedef long long ll;const int N = 1e5 + 5;const int INF = 0x3f3f3f3f;int main(void) { int s[5] = {50,... 阅读全文
posted @ 2015-12-02 17:01 Running_Time 阅读(321) 评论(0) 推荐(0)
摘要:水 A - Two Bases 水题,但是pow的精度不高,应该是转换成long long精度丢失了干脆直接double就可以了。被hack掉了。用long long能存的下 #include <bits/stdc++.h> using namespace std; typedef long lon 阅读全文
posted @ 2015-11-25 11:48 Running_Time 阅读(336) 评论(2) 推荐(0)
摘要:水A - Patrick and Shopping#include using namespace std;int main(void) { int d1, d2, d3; scanf ("%d%d%d", &d1, &d2, &d3); printf ("%d\n", min (min (2 * ... 阅读全文
posted @ 2015-11-21 13:39 Running_Time 阅读(172) 评论(0) 推荐(0)
摘要:水A - Wilbur and Swimming Pool自从打完北京区域赛,对矩形有种莫名的恐惧..#include using namespace std;typedef long long ll;const int N = 1e5 + 10;const int INF = 0x3f3f3f3f... 阅读全文
posted @ 2015-11-20 09:39 Running_Time 阅读(193) 评论(0) 推荐(0)
摘要:C题题目出错了,unrating,2题就能有很好的名次,只能呵呵了。水A - Vitaly and Night/************************************************* Author :Running_Time* Created Time :... 阅读全文
posted @ 2015-11-09 09:44 Running_Time 阅读(282) 评论(0) 推荐(0)
摘要:推迟了15分钟开始,B卡住不会,最后弃疗,rating只涨一分。。。水(暴力枚举)A - 2Char/************************************************* Author :Running_Time* Created Time :2015/... 阅读全文
posted @ 2015-11-05 17:39 Running_Time 阅读(148) 评论(0) 推荐(0)
摘要:这场CF,准备充足,回寝室洗了澡,睡了一觉,可结果。。。水A - PawnChess第一次忘记判断相等时A先走算A赢,hack掉。后来才知道自己的代码写错了(摔for (int i=1; i#include #include #include #include #include #include #... 阅读全文
posted @ 2015-11-02 21:49 Running_Time 阅读(236) 评论(0) 推荐(0)
摘要:题目传送门水A - Wizards' Duel题目都没看清就写了,1e-4精度WA了一次。。。/************************************************* Author :Running_Time* Created Time :2015/10/... 阅读全文
posted @ 2015-10-26 15:29 Running_Time 阅读(180) 评论(0) 推荐(0)
摘要:贪心A - Duff and Meat题意:卖肉问题,当天的价格便宜可以将以后的肉买了,问最少花费多少钱分析:差点就做不出来了,维护一个动态的前缀最小值,如果当前的价格便宜则更新最小值,当天的肉用最小值买。#include const int N = 1e5 + 10;int a[N], p[N];... 阅读全文
posted @ 2015-10-20 16:07 Running_Time 阅读(266) 评论(0) 推荐(0)
摘要:水A - Alena's Schedule/************************************************* Author :Running_Time* Created Time :2015/10/12 星期一 16:49:42* File Name... 阅读全文
posted @ 2015-10-13 16:21 Running_Time 阅读(220) 评论(0) 推荐(0)
摘要:CF的rating设置改了。。人太多了,决定开小号打,果然是明智的选择!水A - Olesya and Rodion#include using namespace std;typedef long long ll;const int N = 1e5 + 10;const int INF = 0x3... 阅读全文
posted @ 2015-10-08 16:53 Running_Time 阅读(250) 评论(0) 推荐(0)
摘要:被进爷坑了,第二天的比赛改到了12点水A - Asphalting Roads/************************************************* Author :Running_Time* Created Time :2015/10/3 星期六 21... 阅读全文
posted @ 2015-10-06 21:42 Running_Time 阅读(205) 评论(0) 推荐(0)
摘要:水A - Vasya the Hipster/************************************************* Author :Running_Time* Created Time :2015/9/28 星期一 16:58:13* File Name... 阅读全文
posted @ 2015-09-29 14:22 Running_Time 阅读(239) 评论(0) 推荐(0)
摘要:水 A - Kefa and First Steps /************************************************ * Author :Running_Time * Created Time :2015/9/23 星期三 00:19:33 * File Name 阅读全文
posted @ 2015-09-23 16:11 Running_Time 阅读(195) 评论(0) 推荐(0)
摘要:数学A - Raising Bacteria分析:如果1 #include #include #include #include #include #include #include #include #include #include #include #include #include #inc... 阅读全文
posted @ 2015-09-18 12:02 Running_Time 阅读(159) 评论(0) 推荐(0)
摘要:水A - Multiplication Table不要想复杂,第一题就是纯暴力代码:#include #include #include #include using namespace std;const int N = 1e5 + 10;const int INF = 0x3f3f3f3f;in... 阅读全文
posted @ 2015-09-11 16:21 Running_Time 阅读(268) 评论(0) 推荐(0)
摘要:水 A - Ilya and Diplomas 贪心 || 二分 B - Pasha and Tea 题意:有n个girl和n个boy喝茶,茶杯的容量不等,boy喝的是girl的两倍且boy喝的一样多,girl喝的一样多,问主人最多能倒出多少水 分析:第一反应是用二分搜索girl喝的茶容量,可惜写搓 阅读全文
posted @ 2015-09-03 20:11 Running_Time 阅读(201) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 8 下一页