1325: [NOIP2006]作业调度方案 摘要:```cpp #include #include using namespace std; const int maxn=20; int n,m,line[maxn*maxn],workli…… 题解列表 2023年05月20日 0 点赞 0 评论 578 浏览 评分:9.9
1324: [NOIP2006]开心的金明 摘要:```cpp #include #include using namespace std; int w[61][3],v[61][3],n,m,f[61][30001][5]; int ma…… 题解列表 2023年05月20日 0 点赞 0 评论 366 浏览 评分:9.9
1323: 能量项链 摘要:```cpp #include using namespace std; int n,e[203],s[203][203],maxn=-1; int main() { cin>>n…… 题解列表 2023年05月20日 0 点赞 0 评论 409 浏览 评分:9.9
2894:肿瘤检测 摘要:解题思路:注意事项:要考虑数组边界的数参考代码:#include<iostream>using namespace std;int main() { int m, n; int i, j, k = 0…… 题解列表 2023年05月19日 0 点赞 0 评论 238 浏览 评分:7.8
扫雷游戏地雷数计算 摘要:解题思路:把*号周围的数字都++注意事项:参考代码:#include<iostream>using namespace std;int main(){ //把*号周边的数++ int n,m; ch…… 题解列表 2023年05月19日 1 点赞 0 评论 401 浏览 评分:4.0
题解 1008: [编程入门]成绩评定 摘要:代码 ```cpp #include using namespace std; int main() { int n; scanf("%d",&n); if(n>=90) { p…… 题解列表 2023年05月19日 0 点赞 0 评论 538 浏览 评分:9.9
简单的dp,O(nlogn+mlogm+n*m) 摘要:解题思路:见注释注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxm 2010#define maxn 2010typed…… 题解列表 2023年05月19日 0 点赞 0 评论 347 浏览 评分:9.9
题目 1187: 假币问题题解 摘要:解题思路:公式是floor(log(n-1)/log(3)+1)注意事项:n=1时,log(n-1)无意义,必须特殊处理参考代码:#include<iostream> using namespace…… 题解列表 2023年05月19日 0 点赞 0 评论 300 浏览 评分:0.0
题目 1183: 人见人爱A+B题解 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main(){ int ah,am,as,bh,bm,bs,ch,c…… 题解列表 2023年05月19日 0 点赞 0 评论 191 浏览 评分:0.0
链式前向星解法 摘要:解题思路:本题写一个链式前向星的写法,仅供参考由于我们知道在一棵树上任意两个点的路径经过的边是唯一确定的因此对于每一个路径我们对路径上的边的边权加一,这里我们可以通过树上差分在O(n)复杂度内解决,一…… 题解列表 2023年05月19日 0 点赞 1 评论 479 浏览 评分:6.0