数位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 评论 1303 浏览 评分:0.0
有较大数是用long(全部) 摘要:#include<stdio.h> int judge(long n); int main(void) { int i; for(i = 0; i <= 200000; i+…… 题解列表 2024年12月30日 0 点赞 0 评论 508 浏览 评分:0.0
c++找最大数序列 摘要:解题思路: 选取字符串中数字将其排除二维数组,并将二维数组中各个最大值放入一个一维数组中。再在一维数组中取出最大值。注意事项: 使用isdigit(c)判断是否数字。 #includ…… 题解列表 2024年12月30日 0 点赞 0 评论 480 浏览 评分: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 评论 318 浏览 评分:0.0
这尼玛太简单了啊 摘要:#include<stdio.h> int judge(int n); int cube(int n); int main(void) { int i; for(i = 2…… 题解列表 2024年12月31日 0 点赞 0 评论 358 浏览 评分:0.0
2025元旦快乐,马原背了吗 摘要:解题思路:#include<stdio.h> int factsum(int n); int judge(int a,int b); int main(void) { int a, …… 题解列表 2024年12月31日 0 点赞 0 评论 275 浏览 评分:0.0
如此简单竟然有脸为中等题 摘要:#include<stdio.h> int main(void) { int i, n, foot, sum = 0, count = 0; while(scanf("%d %…… 题解列表 2024年12月31日 1 点赞 0 评论 352 浏览 评分:0.0
约瑟夫环比出圈更高大上啊(但是太简单了) 摘要:解题思路:标记淘汰,首尾相连,很简单注意事项:参考代码:#include<stdio.h> int main(void) { int n, m,i; while(scanf("…… 题解列表 2024年12月31日 0 点赞 0 评论 300 浏览 评分:0.0
直接解决,少写一点点 摘要:解题思路:注意事项:参考代码:#include<stdio.h>main ( ){ printf("%d %d",sizeof(float), sizeof(double) ) ;}…… 题解列表 2024年12月31日 0 点赞 0 评论 609 浏览 评分:0.0
字符排列问题 摘要:注意:这里要用到 next_permutation 函数,这个函数用来求全排列 用法:next_permutation(s.begin(),s.end()) ```cpp #include #…… 题解列表 2025年01月01日 0 点赞 0 评论 317 浏览 评分:0.0