首页 > 小红升装备
头像 Rain_Fly
发表于 2024-04-15 13:16:45
二维写法 ">typedef unsigned long long ull; typedef long long ll; using namespace std; const int N = 310; const int M = 2e5 + 10; const int mod = 99824435 展开全文
头像 小男娘
发表于 2026-01-13 23:36:06
发现 DP 式子除了一个初始价格以外和部分背包类似,于是直接使用相同的方式优化,时间复杂度。 #include <iostream> #include <deque> using namespace std; using ll = long long; ll dp[301 展开全文
头像 腌萝卜干
发表于 2026-02-12 10:33:57
背包问题变形 #include <bits/stdc++.h> #define x first #define y second using namespace std; typedef long long LL; typedef long double LD; typedef p 展开全文

等你来战

查看全部