Java简单易懂的方法 摘要:解题思路:注意事项:参考代码:importjava.util.Arrays;importjava.util.Iterator;importjava.util…… 题解列表 2025年03月06日 0 点赞 0 评论 297 浏览 评分:0.0
c语言好数详解 摘要:解题思路:第一位是奇数位,第二位是偶数位,第三位是奇数位....注意事项:参考代码:#include <stdio.h>int main(){ int n; int i,a; scanf(…… 题解列表 2025年03月21日 2 点赞 0 评论 458 浏览 评分:0.0
蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int judge(int n)//设置一个判断该数是否为好数的函数{ int p=1; //p记录位数,因为从…… 题解列表 2025年03月24日 8 点赞 0 评论 941 浏览 评分:0.0
好数的常规思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>inthaoshu(intn);inthaoshu(intn){…… 题解列表 2025年04月02日 4 点赞 0 评论 765 浏览 评分: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 评论 434 浏览 评分:0.0
蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:非常规解法,专门对付10^18次方的大数量级注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int k1[]={1,3,5,7,9}…… 题解列表 2024年11月20日 0 点赞 0 评论 346 浏览 评分:2.0
蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:注意事项:参考代码#include <iostream>using namespace std;bool check(int x);int main(){ /*一个数奇数位为奇数,偶数位为偶…… 题解列表 2024年10月17日 0 点赞 0 评论 328 浏览 评分:6.0
算法最优解,比较容易理解(好数) 摘要:**解题思路:**输入n,循环1-n之间的数,难点在于求出数的位数,各个位数的求法。然后看各个位数是否满足条件。如果一个数各个位数都满足条件,则该位数满足条件,满足的好数个数加一。 **参考代码如下…… 题解列表 2024年04月15日 0 点赞 0 评论 414 浏览 评分:7.3
蓝桥杯2024年第十五届省赛真题-好数(暴力枚举即可) 摘要:```cpp #include using namespace std; int Size(int a)//求它有多少位 { int size=0; while(a) { …… 题解列表 2024年04月14日 0 点赞 2 评论 421 浏览 评分:7.3
c语言 好数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int hs(int n){ int k1,k2; int flag; while(1){ …… 题解列表 2024年09月22日 0 点赞 0 评论 400 浏览 评分:8.4