3056: 宠物小精灵之收服 摘要:解题思路:01背包 两个限制条件, 双重循环倒序遍历 f[i][j]表示i个精灵球j伤害值最多收获的精灵注意事项:得到大值,再找最小的j参考代码:#include<iostream> #includ…… 题解列表 2024年04月29日 0 点赞 0 评论 320 浏览 评分:10.0
c代码注意找到规律 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h>int main(){ int n,i,j=0,k; scanf("%d",&n); char a…… 题解列表 2024年04月29日 0 点赞 0 评论 394 浏览 评分:9.9
2856: 潜伏者 摘要:设置一个26位字母表的字符数组zmb[26],数组内元素zmb[0]-zmb[25]: zmb[0]的0代表加密信息中的字符A,······,zmb[25]的25代表加密信息中的字符Z; zmb[…… 题解列表 2024年04月29日 0 点赞 0 评论 437 浏览 评分:0.0
自定义函数之数字后移 摘要:解题思路:用取余来求出对应的下标注意事项:注意用另外一个数组d存储数据参考代码:#include<stdio.h>int main(){ int a,b; int index; ch…… 题解列表 2024年04月29日 0 点赞 0 评论 318 浏览 评分:9.9
极简-c++语言初学者思路*通俗易懂 摘要:#include <iostream> using namespace std; int main() { int n; cin >> n; for (int i = 6; i <=…… 题解列表 2024年04月28日 0 点赞 0 评论 407 浏览 评分:9.9
信息学奥赛一本通T1291-数字组合 摘要:解题思路:01 背包, f[j] 表示和为j的方案数, 当j = 0 时, 方案为一个数字都不选,此时方案数为1注意事项:参考代码:#include<iostream> #include<algor…… 题解列表 2024年04月28日 0 点赞 0 评论 857 浏览 评分:9.9
计算多项式的导函数 摘要:解题思路:注意事项:输入n项是常数项的导数是0,不用输出参考代码:#include<iostream>using namespace std;int main(){ int n; int c;…… 题解列表 2024年04月28日 0 点赞 0 评论 336 浏览 评分:0.0
信息学奥赛一本通T1290-采药 摘要:解题思路:典型01背包注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N = 1e…… 题解列表 2024年04月28日 0 点赞 0 评论 284 浏览 评分:9.9
涉及一点小学数学方法解题 摘要:解题思路:遍历出有0的位置,然后计算包含0的矩形的长和宽,各自减2相乘即可注意事项:参考代码:#include<stdio.h> int main(){ int n,i,j,p,q,x=0,y=0; …… 题解列表 2024年04月28日 0 点赞 0 评论 483 浏览 评分:9.9
题解 2920: 分数线划定 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; int b; int c[5000]; int d[5000]; i…… 题解列表 2024年04月28日 0 点赞 0 评论 393 浏览 评分:0.0