题解列表

筛选

开心的金明 (C++代码)

摘要:解题思路:用dp重新写一下,不过不用dp也能过,可能是测试数据比较水注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS #include <iostream> ……

采药 (C++代码)

摘要:解题思路:dp注意事项:1.优化二维数组至一维,就不需要写if判断了,否则需要像地表最强召唤兽那样写if,否则空间不足时的总价格就不会被计算还是0,导致答案错误2.数组大小要开足参考代码:#defin……

还是畅通工程 (C++代码)

摘要:解题思路:            还是并查集+快排#include<bits/stdc++.h> using namespace std; const int MAXN = 1e5 + 7; s……

继续畅通工程 (C++代码)

摘要:解题思路:                继续并查集+快排#include<bits/stdc++.h> using namespace std; const int MAXN = 1e5 + 7……

畅通工程 (C++代码)

摘要:解题思路:                并查集#include<bits/stdc++.h> using namespace std; const int MAXN = 1e5 + 7; st……

三角形 (C++代码)

摘要:解题思路:dp...注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS #include <iostream> #define N 100 using nam……