CCF Python题解(100分)201709-1 打酱油
2018-11-14 22:36
337 查看
N = int(input()) max5 = N // (5 * 10) list1 = [] for i in range(max5 + 1): rest = N - 10 * 5 * i count = i * (5 + 2) max3 = rest // (10 * 3) count += max3 * (3 + 1) rest -= max3 * 3 * 10 if rest >= 10: count += rest // 10 list1.append(count) print(max(list1))阅读更多
相关文章推荐
- python ccf题解 201709-1 打酱油
- python ccf题解 201709-2 公共钥匙盒
- CCF Python题解(100分)201509-1 数列分段
- CCF Python题解(100分)201503-1 图像旋转
- CCF Python题解(100分)201512-1 数位之和
- CCF Python题解(100分)201412-1 门禁系统
- CCF Python题解(100分)201409-1 相邻数对
- CCF Python题解(100分)201403-1 相反数
- python ccf题解 201709-3 JSON查询
- CCF CSP 201709-1 打酱油(Java-100分)
- CCF Python题解(100分)201703-1 分蛋糕
- CCF Python题解(100分)201312-1 出现次数最多的数
- CCF Python题解(100分)201612-1 中间数
- CCF Python题解(100分)201609-1 最大波动
- CCF Python题解(100分)201604-1 折点计数
- CCF CSP认证 题解:201709-2 公共钥匙盒(Java语言原创)
- python ccf题解 201512- 1 数位之和
- 【CCF-CSP 201709-1】打酱油
- python ccf题解 201712-2 游戏
- python ccf题解 201509-1 数列分段