Codeforces Round 961 (Div. 2) |
---|
Finished 完成 |
Practice |
您可以将此比赛克隆到混搭比赛中。
提交编号 | 时间 | 判题状态 |
---|---|---|
272241038 | Jul/24/2024 06:15 | Wrong answer on test 3 测试 3 答案错误 |
272175121 | Jul/23/2024 20:17 | Wrong answer on test 3 测试 3 答案错误 |
This is the easy version of the problem. The only difference is that in this version, the flowers are specified by enumeration.
这是问题的简易版本。唯一的区别在于,本版本中花朵是通过枚举方式指定的。
A girl is preparing for her birthday and wants to buy the most beautiful bouquet. There are a total of
一个女孩正在为她的生日做准备,想要购买最美丽的花束。商店里总共有
这是问题的简单版本。唯一的区别在于,本版本中花朵是通过枚举方式指定的。
一个女孩正在为她的生日准备,想要购买最美丽的花束。商店里总共有
Each test consists of several test cases. The first line contains a single integer
每个测试由多个测试用例组成。第一行包含一个整数
The first line of each test case contains two integers
每个测试用例的第一行包含两个整数
The sum of
所有测试用例中
输入
每个测试包含多个测试用例。第一行包含一个整数
每个测试用例的第一行包含两个整数
所有测试用例中
For each test case, output a single integer — the maximum possible number of petals in the bouquet that the girl can assemble while meeting all the conditions listed above.
对于每个测试案例,输出一个整数——女孩在满足上述所有条件的情况下,能够组装的花束中花瓣的最大可能数量。
输出
对于每个测试用例,输出一个整数——女孩在满足上述所有条件的情况下可以组装的花束中花瓣的最大可能数量。
55 101 1 2 2 38 204 2 7 5 6 1 1 18 100000239 30 610 122 24 40 8 211 132 4 11 1 1 2 3 5 4 3 28 1033206 206 206 207 207 207 207 1000
7 13 610 13 1033
In the first test case, you can assemble a bouquet with
在第一个测试案例中,你可以用
注释
在第一个测试案例中,你可以组合出以下花束:
Name | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
No items 无项目 |