nuc__x
nuc__x
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
nuc__x的博客
全部文章
(共2篇)
题解 H I J N
H and I 题解:打车费用问题 问题描述 给定需要支付的打车费用 X,以及两种货币的面值 a 和 b。需要判断是否可以利用任意数量的这两种货币凑出费用 X,或者是凑出一个金额,使得司机找回的零钱也是这两种面值的货币。 题目中,面值 a 和 b 的货币数量足够多,可以无限使用。如果能够利用这两种面...
C++
2025-04-20
0
9
题解 | B and I and J and L and M and N
B 标准题解代码 #include <bits/stdc++.h> #define int long long using namespace std; struct Order { int to, profit; }; signed main() { ios::sy...
C++
2025-02-23
3
93