会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ffgcc
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
···
18
下一页
2018年8月11日
HDU 6321 Problem C. Dynamic Graph Matching (状压dp)
摘要: 题意:给定一个N个点的零图,M次操作,添加或删除一条边,每一次操作以后,打印用1,2,…N/2条边构成的匹配数。 分析:因为N的范围很小,所以可以把点的枚举状态用二进制表示集合。用一维数组dp[S]表示二进制集合为S的点集的匹配数。 每次加边操作,从大到小遍...
阅读全文
posted @ 2018-08-11 13:05 ffgcc
阅读(87)
评论(0)
推荐(0)
2018年8月9日
hdu 6373 Pinball(物理题。。
摘要: Pinball Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 591 Accepte...
阅读全文
posted @ 2018-08-09 20:38 ffgcc
阅读(145)
评论(0)
推荐(0)
杭电多校第六次 HDU6370 Werewolf(记忆化搜索)
摘要: Werewolf Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 1443 Accep...
阅读全文
posted @ 2018-08-09 19:47 ffgcc
阅读(113)
评论(0)
推荐(0)
Codeforces Round #502 (in memory of Leopoldo Taravilse, Div. 1 + Div. 2) D. The Wu(思维)
摘要: D. The Wu time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Childan is ma...
阅读全文
posted @ 2018-08-09 09:54 ffgcc
阅读(97)
评论(0)
推荐(0)
2018年8月7日
杭电多校第五次 1007 Glad You Came(线段树)
摘要: 哇哇哇,这次榜是歪的。。 题意: 有一个长度为n的序列,初始值全为0,然后给定m个操作,每个操作指定区间[L,R]和值v,然后将该区间中所有小于v的值替换成v。其中每次操作的L、R和v由一个给定的“随机”函数生成。求经过m次操作以后序列中各个的异或值(看原题...
阅读全文
posted @ 2018-08-07 16:29 ffgcc
阅读(145)
评论(0)
推荐(0)
杭电多校第五次 HDU 6354(计算几何)
摘要: 两端的弧长可以通过公式 求出。现在我们则需要求出两个圆心角即可。而我们发现,两个圆心角分别可以用余弦公式求出,其中大圆的圆心角的一半的余弦为,每个小圆的圆心角的余弦的一半为,继而我们即可将问题转化为一个解三角形的问题。#include #define max...
阅读全文
posted @ 2018-08-07 13:34 ffgcc
阅读(197)
评论(0)
推荐(0)
杭电多校第五次 1002 Beautiful Now(dfs+贪心)
摘要: Problem Description Anton has a positive integer n, however, it quite looks like a mess, so he wants to make it beautiful after k...
阅读全文
posted @ 2018-08-07 11:51 ffgcc
阅读(197)
评论(0)
推荐(0)
2018年8月4日
Educational Codeforces Round 48 (Rated for Div. 2) C. Vasya And The Mushrooms(思维)
摘要: C. Vasya And The Mushrooms time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard out...
阅读全文
posted @ 2018-08-04 16:45 ffgcc
阅读(91)
评论(0)
推荐(0)
KMP模板
摘要: #includeusing namespace std;#define ll long long#define pb push_back#define inf 200000099999999#define mod 998244353#define rep(...
阅读全文
posted @ 2018-08-04 08:53 ffgcc
阅读(92)
评论(0)
推荐(0)
Educational Codeforces Round 48 (Rated for Div. 2) D. Vasya And The Matrix(构造
摘要: D. Vasya And The Matrix time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output...
阅读全文
posted @ 2018-08-04 08:51 ffgcc
阅读(71)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
18
下一页
公告