算法最优解,比较容易理解(好数) 摘要:**解题思路:**输入n,循环1-n之间的数,难点在于求出数的位数,各个位数的求法。然后看各个位数是否满足条件。如果一个数各个位数都满足条件,则该位数满足条件,满足的好数个数加一。 **参考代码如下…… 题解列表 2024年04月15日 0 点赞 0 评论 705 浏览 评分:7.3
蓝桥杯2024年第十五届省赛真题-好数(暴力枚举即可) 摘要:```cpp #include using namespace std; int Size(int a)//求它有多少位 { int size=0; while(a) { …… 题解列表 2024年04月14日 0 点赞 2 评论 651 浏览 评分:7.3
蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:注意事项:参考代码#include <iostream>using namespace std;bool check(int x);int main(){ /*一个数奇数位为奇数,偶数位为偶…… 题解列表 2024年10月17日 0 点赞 0 评论 536 浏览 评分:6.0
蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:非常规解法,专门对付10^18次方的大数量级注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int k1[]={1,3,5,7,9}…… 题解列表 2024年11月20日 0 点赞 0 评论 597 浏览 评分:2.0
Java简单易懂的方法 摘要:解题思路:注意事项:参考代码:importjava.util.Arrays;importjava.util.Iterator;importjava.util…… 题解列表 2025年03月06日 0 点赞 0 评论 483 浏览 评分:0.0
3209: 蓝桥杯2024年第十五届省赛真题-好数 简单易懂的方法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;//个,百,万是奇数位,十,千,十万是偶数位int ishaoshu(i…… 题解列表 2025年03月03日 9 点赞 1 评论 1682 浏览 评分:0.0
好数的常规思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>inthaoshu(intn);inthaoshu(intn){…… 题解列表 2025年04月02日 4 点赞 0 评论 1134 浏览 评分:0.0
莉露C++编写题解 3209: 蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:如下注意事项:如下参考代码:#include<iostream>#include<string>using namespace std;int main(){ ios…… 题解列表 2026年04月10日 0 点赞 0 评论 62 浏览 评分:0.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 评论 759 浏览 评分:0.0
蓝桥杯2024年第十五届省赛真题-好数 暴力 摘要:解题思路:注意事项:参考代码:#include"iostream"using namespace std;int main(){ int n; int s=0; int x=1; cin>>n; fo…… 题解列表 2024年11月27日 1 点赞 0 评论 1134 浏览 评分:0.0