每一行都有解释的c++代码(组合的输出) 摘要:参考代码:#include<bits/stdc++.h>//c++万能头文件using namespace std;//可以不写,不写的话在前面加上std::int m, n;//定义两个变量用于承载…… 题解列表 2024年11月07日 1 点赞 0 评论 843 浏览 评分:7.3
T1267-01背包问题 摘要:解题思路:滚动数组—— 一维dp数组遍历:for( ) 物品 for( 逆序) 背包递推公式: dp[ j ] = max( dp[ j ] , dp[ j -w[ i ] ] + …… 题解列表 2024年11月07日 0 点赞 0 评论 436 浏览 评分:0.0
信息学奥赛一本通T1173-阶乘和--运用高精度乘法与加法:计算n的阶乘和 摘要:解题思路:因为n<=50;当n>20最大存储整数类型long long也存储不下,导致造成数据溢出。所以运用高精度乘法与加法计算n的阶乘和参考代码:#include <iostream>#includ…… 题解列表 2024年11月07日 0 点赞 0 评论 735 浏览 评分:9.9
小白,看看就行,不动脑袋 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>using namespace std;int main(){ int k, n; dou…… 题解列表 2024年11月07日 0 点赞 0 评论 405 浏览 评分:0.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int L,M; cin>>L>>M; …… 题解列表 2024年11月07日 1 点赞 0 评论 567 浏览 评分:0.0
信息学奥赛一本通T1589-不要 62 数位dp #includeusingnamespacestd;intl,r;intf[11][11];voidinit(){for(inti=0;ir&&(l||r)){cout 题解列表 2024年11月07日 0 点赞 0 评论 510 浏览 评分: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 评论 973 浏览 评分: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 评论 412 浏览 评分: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 评论 695 浏览 评分:0.0