蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:注意事项:参考代码#include <iostream>using namespace std;bool check(int x);int main(){ /*一个数奇数位为奇数,偶数位为偶…… 题解列表 2024年10月17日 0 点赞 0 评论 297 浏览 评分:6.0
蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:非常规解法,专门对付10^18次方的大数量级注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int k1[]={1,3,5,7,9}…… 题解列表 2024年11月20日 0 点赞 0 评论 319 浏览 评分:2.0
单纯模拟我写详细点,方便新人观看 摘要:解题思路:主要看数据量,不是很大的都考虑先模拟。(求赞!)注意事项:看清题,是奇数还是偶数分清楚,今年考的时候就看错了,还好改了参考代码:#include<iostream>using namespa…… 题解列表 2024年04月22日 1 点赞 0 评论 242 浏览 评分: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 评论 370 浏览 评分:0.0
好数的常规思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>inthaoshu(intn);inthaoshu(intn){…… 题解列表 2025年04月02日 4 点赞 0 评论 690 浏览 评分:0.0
蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int judge(int n)//设置一个判断该数是否为好数的函数{ int p=1; //p记录位数,因为从…… 题解列表 2025年03月24日 8 点赞 0 评论 863 浏览 评分:0.0
c语言好数详解 摘要:解题思路:第一位是奇数位,第二位是偶数位,第三位是奇数位....注意事项:参考代码:#include <stdio.h>int main(){ int n; int i,a; scanf(…… 题解列表 2025年03月21日 2 点赞 0 评论 396 浏览 评分:0.0
Java简单易懂的方法 摘要:解题思路:注意事项:参考代码:importjava.util.Arrays;importjava.util.Iterator;importjava.util…… 题解列表 2025年03月06日 0 点赞 0 评论 260 浏览 评分:0.0
3209: 蓝桥杯2024年第十五届省赛真题-好数 简单易懂的方法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;//个,百,万是奇数位,十,千,十万是偶数位int ishaoshu(i…… 题解列表 2025年03月03日 6 点赞 1 评论 1168 浏览 评分:0.0
暴力算法最优解,简单干脆!!! 摘要:解题思路:输入n,循环1-n之间的数,难点在于求出数的位数,各个位数的求法。然后看各个位数是否满足条件。如果一个数各个位数都满足条件,则该位数满足条件,满足的好数个数加一。注意事项:参考代码:#inc…… 题解列表 2024年04月15日 0 点赞 0 评论 272 浏览 评分:0.0