数位 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 评论 213 浏览 评分:0.0
c++找最大数序列 摘要:解题思路: 选取字符串中数字将其排除二维数组,并将二维数组中各个最大值放入一个一维数组中。再在一维数组中取出最大值。注意事项: 使用isdigit(c)判断是否数字。 #includ…… 题解列表 2024年12月30日 0 点赞 0 评论 364 浏览 评分: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 评论 1202 浏览 评分: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 评论 685 浏览 评分:10.0
本蒟蒻来写题解 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<unordered_map>#include<string>#include<climits> // 用于 CHAR…… 题解列表 2024年12月29日 0 点赞 0 评论 284 浏览 评分:0.0
有点懵,搞不清楚二维和一维使用 摘要:解题思路:注意事项:参考代码#include<iostream>using namespace std;int n, m;int a[5010], b[5010], dp[5010];int main…… 题解列表 2024年12月29日 1 点赞 0 评论 245 浏览 评分:10.0
编写题解 2816: 统计满足条件的4位数个数 摘要:解题思路:注意事项:注意分离数位的代码(见下面的代码第11行)参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long…… 题解列表 2024年12月29日 0 点赞 0 评论 240 浏览 评分: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 评论 350 浏览 评分:0.0
烈焰 燃毁!!! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; #define mo 1000007 // 定义模数,用于结果取模 int…… 题解列表 2024年12月28日 0 点赞 0 评论 157 浏览 评分:0.0
谁考了第k名 C++ 摘要:```cpp #include using namespace std; // 定义学生结构体 struct Student { int id; // 学号…… 题解列表 2024年12月28日 0 点赞 0 评论 252 浏览 评分:0.0