原文:2017-2018 ACM-ICPC, NEERC, Moscow Subregional Contest

A. Advertising Strategy 最优策略一定是第一天用 y 元,最后一天再用 x y 元补满。 枚举所有可能的 y ,然后模拟即可,天数为 O log n 级别。 时间复杂度 O x log n 。 include lt cstdio gt typedef long long ll const ll inf LL lt lt ll min ll a,ll b return a lt ...

2017-11-26 23:51 3 1481 推荐指数:

查看详情

2017-2018 ACM-ICPC, NEERC, Moscow Subregional Contest

2017-2018 ACM-ICPC, NEERC, Moscow Subregional Contest Problem A. Advertising Strategy 题目描述:给出两个数\(n, k\),初始时\(a_1=0\),每一天开始时令\(b_i=a_i+x_i\),每天结束时 ...

Mon Feb 26 18:41:00 CST 2018 2 1123
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM