信息学奥赛一本通T1290-采药 摘要:解题思路:典型01背包注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N = 1e…… 题解列表 2024年04月28日 0 点赞 0 评论 125 浏览 评分:9.9
超绝相差解法 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m,n; cin>>m>>n; int s1=0; int s…… 题解列表 2024年04月28日 0 点赞 0 评论 147 浏览 评分:0.0
超绝相差解法 摘要:解题思路:1 3 5-1 3 =5注意事项:参考代码:#includeusing namespace std;int main(){ int m,n; cin>>m>>n; int sum1=0; i…… 题解列表 2024年04月28日 0 点赞 0 评论 381 浏览 评分:9.9
会find就很好做了 摘要: ```cpp #include using namespace std; #define endl '\n' const int N=105; string s; int…… 题解列表 2024年04月28日 0 点赞 0 评论 461 浏览 评分:9.9
信息学奥赛一本通T1273-货币系统 摘要:解题思路:完全背包注意事项:参考代码:#include<iostream> using namespace std; const int N = 1e2 + 10; int a[N],f[N];…… 题解列表 2024年04月28日 0 点赞 0 评论 404 浏览 评分:9.9
[递归]母牛的故事(动态规划,递归) 摘要:解题思路:写出数学表达式 F(x){ x<=3 f(x)=x;// 前三年只有一头母牛生孩子 &nbs 题解列表 2024年04月27日 0 点赞 0 评论 264 浏览 评分:6.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;const int N=1e7;using namespace std;int …… 题解列表 2024年04月27日 0 点赞 0 评论 182 浏览 评分:2.0
2821: 开关灯 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;const int N=1e7;using namespace std;int …… 题解列表 2024年04月27日 1 点赞 0 评论 219 浏览 评分:2.0
1738-排序(由小到大*多数据排序) 摘要:解题思路:用数组储存数据,两个for循环遍历数据,比较大小交换位置注意事项:会用到new获取数组大小参考代码:#include <iostream>using namespace std;void s…… 题解列表 2024年04月26日 0 点赞 2 评论 382 浏览 评分:9.9
2136: 信息学奥赛一本通T1272-分组背包 摘要:解题思路:分组背包注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N = 40; …… 题解列表 2024年04月26日 0 点赞 0 评论 185 浏览 评分:9.9