摘要:
牛客链接 A 思路 掌握 x^0=x 这个性质就可以秒了 题解 #include <bits/stdc++.h> using namespace std; const int N=1e5+10; typedef long long ll; int t,n; int k; int main() { i 阅读全文
摘要:
01背包模板 测试链接 #include <bits/stdc++.h> const int N = 10000; using namespace std; int dp[10001]; int v[N],w[N]; int main() { int t,m; cin>>t>>m; for(int 阅读全文
摘要:
题目链接:https://www.luogu.com.cn/problem/P2910 题解 #include <bits/stdc++.h> using namespace std; const int N=1e5+10; typedef long long ll; int t,n; int m; 阅读全文
摘要:
题目链接:https://www.luogu.com.cn/problem/P3385 题解 #include <bits/stdc++.h> using namespace std; const int N=1e5+10; typedef long long ll; int t,n; int m; 阅读全文
摘要:
leedcode测试链接:https://leetcode.cn/problems/DFPeFJ/ 题解: class Solution { public: int electricCarPlan(vector<vector<int>>& paths, int cnt, int start, int 阅读全文