T1267-01背包问题 摘要:解题思路:滚动数组—— 一维dp数组遍历:for( ) 物品 for( 逆序) 背包递推公式: dp[ j ] = max( dp[ j ] , dp[ j -w[ i ] ] + …… 题解列表 2024年11月07日 0 点赞 0 评论 443 浏览 评分:0.0
信息学奥赛一本通T1173-阶乘和--运用高精度乘法与加法:计算n的阶乘和 摘要:解题思路:因为n<=50;当n>20最大存储整数类型long long也存储不下,导致造成数据溢出。所以运用高精度乘法与加法计算n的阶乘和参考代码:#include <iostream>#includ…… 题解列表 2024年11月07日 0 点赞 0 评论 742 浏览 评分:9.9
小白,看看就行,不动脑袋 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>using namespace std;int main(){ int k, n; dou…… 题解列表 2024年11月07日 0 点赞 0 评论 410 浏览 评分:0.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int L,M; cin>>L>>M; …… 题解列表 2024年11月07日 1 点赞 0 评论 569 浏览 评分:0.0
信息学奥赛一本通T1589-不要 62 数位dp #includeusingnamespacestd;intl,r;intf[11][11];voidinit(){for(inti=0;ir&&(l||r)){cout 题解列表 2024年11月07日 0 点赞 0 评论 516 浏览 评分:9.9
不开long long 见祖宗#2656: 蓝桥杯2022年第十三届省赛真题-刷题统计 ```#define_CRT_SECURE_NO_WARNINGS1#include#include#include#include#include#include#include#include#include#include#defineMAX0x3f3f3f3f#defineMIN-0x3f3f 题解列表 2024年11月07日 1 点赞 0 评论 978 浏览 评分:9.0
简单模拟 # 2576: 蓝桥杯2020年第十一届省赛真题-解码 ```#define_CRT_SECURE_NO_WARNINGS1#include#include#include#include#include#include#include#include#include#include#defineMAX0x3f3f3f3f#defineMIN-0x3f3f 题解列表 2024年11月07日 0 点赞 0 评论 415 浏览 评分:9.9
经典递归练习汉诺塔 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; void hhh(int n,int A=1,int B=2,int C=3…… 题解列表 2024年11月07日 1 点赞 0 评论 698 浏览 评分:0.0
蓝桥杯历届试题-回文数字,包看懂解法 摘要:#include"bits/stdc++.h" using namespace std; int main() { int a,b=0,c,d,e,f,g,h; cin>>a;…… 题解列表 2024年11月07日 0 点赞 0 评论 601 浏览 评分:0.0