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

A. Auxiliary Project 完全背包。 include lt stdio.h gt include lt iostream gt include lt string.h gt include lt string gt include lt ctype.h gt include lt math.h gt include lt set gt include lt map gt inclu ...

2017-11-26 01:00 0 1215 推荐指数:

查看详情

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
2017-2018 ACM-ICPC, NEERC, Moscow Subregional Contest

A. Advertising Strategy 最优策略一定是第一天用$y$元,最后一天再用$x-y$元补满。 枚举所有可能的$y$,然后模拟即可,天数为$O(\log n)$级别。 时间复杂度 ...

Mon Nov 27 07:51:00 CST 2017 3 1481
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM