2018年7月15日

CodeM 美团资格赛 思维 dfs

摘要: 链接:https://www.nowcoder.com/acm/contest/138/C来源:牛客网 世界杯就要开始啦!真真正正的战斗从淘汰赛开始,现在我们给出球队之间的胜负概率,来预测每支球队夺冠的可能性。 在接下来的篇幅中,我们将简单介绍淘汰赛阶段的规则。 淘汰赛阶段的90分钟常规时间内(含补 阅读全文

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

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) 编辑

导航