摘要: 组合数,转化,高精的写法 阅读全文
posted @ 2018-09-23 16:06 lcan 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 前缀和差分,二分答案 阅读全文
posted @ 2018-09-23 15:11 lcan 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 约翰有太多的工作要做。为了让农场高效运转,他必须靠他的工作赚钱,每项工作花一个单位时间。 他的工作日从0时刻开始,有10^9个单位时间。在任一时刻,他都可以选择编号1~N的N(1 <= N <= 10^6)项工作中的任意一项工作来完成。 因为他在每个单位时间里只能做一个工作,而每项工作又有一个截止日 阅读全文
posted @ 2018-09-23 11:35 lcan 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 模拟,AOE网图 阅读全文
posted @ 2018-09-23 10:01 lcan 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 using namespace std; 4 const int maxn=107; 5 int n,h,ans; 6 int f[maxn],d[maxn],t[maxn],dp[maxn][maxn],st[maxn],num[maxn][maxn]; 7 int main(){ 8 cin>>n>>h;h*=12; 9 ... 阅读全文
posted @ 2018-09-23 08:01 lcan 阅读(175) 评论(0) 推荐(0) 编辑