课例题 - 数字方格
No testdata at current.
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述

如上图,有3个方格,每个方格里面都有一个整数a1,a2,a3。已知0 <= a1, a2, a3 <= n,而且a1 + a2是2的倍数,a2 + a3是3的倍数, a1 + a2 + a3是5的倍数。你的任务是找到一组a1,a2,a3,使得a1 + a2 + a3最大。
输入输出格式
输入格式
一行,包含一个整数n (0 <= n <= 100)。
输出格式
一个整数,即a1 + a2 + a3的最大值。
样例输入输出
样例输入
3
样例输出
5
数据范围
10%的数据 n<=5
对于 100%数据 n<=100
语法综合测试
- Status
- Done
- Rule
- XCPC
- Problem
- 11
- Start at
- 2025-8-18 14:00
- End at
- 2025-8-18 17:00
- Duration
- 3 hour(s)
- Host
- Partic.
- 16