大牛纸
大牛纸
全部文章
分类
归档
标签
去牛客网
登录
/
注册
大牛纸的博客
全部文章
(共2篇)
题解 | 小红的整数操作
#include <iostream> #include <algorithm> // for __gcd and max/min using namespace std; int main() { int x, y, l, r; cin >> ...
2025-04-09
0
30
题解 | 游游的水果大礼包
枚举, DP优化之后也没有能通过所有案例. def max_value(n, m, a, b): max_total = 0 # 枚举组成一号大礼包的数量 x for x in range(min(n // 2, m) + 1): # 剩余资源 ...
2025-03-29
0
44