Distinct Products
题解
讨论
查看他人的提交
题号:NC294479
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld
题目描述
Given two integers
and
, you can perform the following operations with given costs:
Increase
by
at cost
.
Increase
by
at cost
.
You have a total budget of
. Determine how many distinct values of
can get if the total cost is not higher than
.
输入描述:
Five integers
(
).
输出描述:
An integer denoting the number of distinct values of
you can get.
示例1
输入
复制
2 3 1 2 6
2 3 1 2 6
输出
复制
11
11
备注:
Distinct Products
返回全部题目
列表加载中...
2 3 1 2 6
11