上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 38 下一页

2018年7月15日

CodeM 资格赛 B 可乐 思维

摘要: 分析: 我们假设购买一种可乐p瓶,我们可以得到期望:p*(m/n*a[i]+(n-m)/n*b[i]),由这个式子我们可以看出唯一的变量是i,所以可以遍历i找出式子的最大值 #include <map> #include <set> #include <stack> #include <cmath> 阅读全文

posted @ 2018-07-15 19:43 九月旧约 阅读(152) 评论(0) 推荐(0) 编辑

CF1009B Minimum Ternary String 思维

摘要: Minimum Ternary String time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given a te 阅读全文

posted @ 2018-07-15 16:39 九月旧约 阅读(162) 评论(0) 推荐(0) 编辑

CF1005E1 Median on Segments (Permutations Edition) 思维

摘要: Median on Segments (Permutations Edition) time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard outpu 阅读全文

posted @ 2018-07-15 16:09 九月旧约 阅读(397) 评论(0) 推荐(0) 编辑

CF1005C Summarize to the Power of Two 暴力 map

摘要: Summarize to the Power of Two time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output A sequence 阅读全文

posted @ 2018-07-15 15:13 九月旧约 阅读(268) 评论(0) 推荐(0) 编辑

CF1005D Polycarp and Div 3 思维

摘要: Polycarp and Div 3 time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output Polycarp and Div 3 ti 阅读全文

posted @ 2018-07-15 14:40 九月旧约 阅读(217) 评论(0) 推荐(0) 编辑

CF1003D Coins and Queries 贪心

摘要: Coins and Queries time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Coins and Queries time 阅读全文

posted @ 2018-07-15 14:33 九月旧约 阅读(179) 评论(0) 推荐(0) 编辑

2018年7月14日

循环求组合数 组合数打表模板

摘要: #include using namespace std; int c[1005][1005]; int main(){ memset(c,0,sizeof(c)); c[0][0] = 1; for(int i = 1; i <= 1000; i ++){ for(int j = 0; j <= i; j ++) if(j == 0 || j == i) c[i]... 阅读全文

posted @ 2018-07-14 22:26 九月旧约 阅读(238) 评论(0) 推荐(0) 编辑

Covered Points Count CF1000C 思维 前缀和 贪心

摘要: Covered Points Count time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output Covered Points Coun 阅读全文

posted @ 2018-07-14 20:10 九月旧约 阅读(555) 评论(0) 推荐(0) 编辑

Light It Up CF1000B 思维

摘要: Light It Up time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Light It Up time limit per te 阅读全文

posted @ 2018-07-14 17:27 九月旧约 阅读(177) 评论(0) 推荐(0) 编辑

2018年7月1日

CF980C Posterized 贪心 二十五

摘要: Posterized time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Professor Ibrahim has prepared 阅读全文

posted @ 2018-07-01 16:34 九月旧约 阅读(113) 评论(0) 推荐(0) 编辑

上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 38 下一页

导航