基于C++,一个简单的编程实现 摘要:解题思路:熟练使用字符串应用注意事项:注意遍历时是否越界参考代码:#include <iostream>#include <string>using namespace std…… 题解列表 2025年01月03日 2 点赞 0 评论 335 浏览 评分:6.0
字符排列问题 摘要:注意:这里要用到 next_permutation 函数,这个函数用来求全排列 用法:next_permutation(s.begin(),s.end()) ```cpp #include #…… 题解列表 2025年01月01日 0 点赞 0 评论 251 浏览 评分:0.0
数位 dp #2493: 信息学奥赛一本通T1589-不要 62(c++) 有注释 摘要:``` #include using namespace std; const int N =35; //I位数字且最高位是J的答案数量 int f[N][10]; voi…… 题解列表 2024年12月31日 0 点赞 0 评论 219 浏览 评分:0.0
c++找最大数序列 摘要:解题思路: 选取字符串中数字将其排除二维数组,并将二维数组中各个最大值放入一个一维数组中。再在一维数组中取出最大值。注意事项: 使用isdigit(c)判断是否数字。 #includ…… 题解列表 2024年12月30日 0 点赞 0 评论 371 浏览 评分:0.0
数位dp#2491: 信息学奥赛一本通T1587-Windy 数(C++) 摘要:``` #include using namespace std; const int N =11; ///一共有I位,最高位是J的windy数的个数 int f[N][10];…… 题解列表 2024年12月30日 1 点赞 0 评论 1213 浏览 评分:0.0
数位dp #2490: 信息学奥赛一本通T1586-数字游戏(C++) 看注释 摘要:``` #include using namespace std; const int N =15; //I位数字且最高位是J的不降数的个数 int f[N][N]; vo…… 题解列表 2024年12月30日 2 点赞 0 评论 694 浏览 评分:10.0
本蒟蒻来写题解 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<unordered_map>#include<string>#include<climits> // 用于 CHAR…… 题解列表 2024年12月29日 0 点赞 0 评论 289 浏览 评分:0.0
有点懵,搞不清楚二维和一维使用 摘要:解题思路:注意事项:参考代码#include<iostream>using namespace std;int n, m;int a[5010], b[5010], dp[5010];int main…… 题解列表 2024年12月29日 1 点赞 0 评论 253 浏览 评分:10.0
编写题解 2816: 统计满足条件的4位数个数 摘要:解题思路:注意事项:注意分离数位的代码(见下面的代码第11行)参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long…… 题解列表 2024年12月29日 0 点赞 0 评论 245 浏览 评分:0.0
2801: 奇数求和题解 摘要:解题思路:注意事项:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ int n,m;cin…… 题解列表 2024年12月29日 0 点赞 0 评论 358 浏览 评分:0.0