蓝桥杯2024年第十五届省赛真题-好数(暴力枚举即可) 摘要:```cpp #include using namespace std; int Size(int a)//求它有多少位 { int size=0; while(a) { …… 题解列表 2024年04月14日 0 点赞 2 评论 503 浏览 评分:7.3
算法最优解,比较容易理解(好数) 摘要:**解题思路:**输入n,循环1-n之间的数,难点在于求出数的位数,各个位数的求法。然后看各个位数是否满足条件。如果一个数各个位数都满足条件,则该位数满足条件,满足的好数个数加一。 **参考代码如下…… 题解列表 2024年04月15日 0 点赞 0 评论 558 浏览 评分:7.3
蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:注意事项:参考代码#include <iostream>using namespace std;bool check(int x);int main(){ /*一个数奇数位为奇数,偶数位为偶…… 题解列表 2024年10月17日 0 点赞 0 评论 428 浏览 评分:6.0
蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:非常规解法,专门对付10^18次方的大数量级注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int k1[]={1,3,5,7,9}…… 题解列表 2024年11月20日 0 点赞 0 评论 471 浏览 评分:2.0
dafasdfasdfasdf 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int ff(int n){ int i=0; int sum; int temp; while(n>0) { t…… 题解列表 2025年04月08日 0 点赞 0 评论 555 浏览 评分:0.0
to_string的大作用 摘要:参考代码:#include<bits/stdc++.h> using namespace std; #define int long long bool haoshu(int i) { s…… 题解列表 2024年10月07日 1 点赞 0 评论 228 浏览 评分:0.0
好数的常规思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>inthaoshu(intn);inthaoshu(intn){…… 题解列表 2025年04月02日 4 点赞 0 评论 932 浏览 评分:0.0
暴力算法最优解,简单干脆!!! 摘要:解题思路:输入n,循环1-n之间的数,难点在于求出数的位数,各个位数的求法。然后看各个位数是否满足条件。如果一个数各个位数都满足条件,则该位数满足条件,满足的好数个数加一。注意事项:参考代码:#inc…… 题解列表 2024年04月15日 0 点赞 0 评论 404 浏览 评分:0.0
Java简单易懂的方法 摘要:解题思路:注意事项:参考代码:importjava.util.Arrays;importjava.util.Iterator;importjava.util…… 题解列表 2025年03月06日 0 点赞 0 评论 386 浏览 评分:0.0
3209: 蓝桥杯2024年第十五届省赛真题-好数 简单易懂的方法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;//个,百,万是奇数位,十,千,十万是偶数位int ishaoshu(i…… 题解列表 2025年03月03日 7 点赞 1 评论 1443 浏览 评分:0.0