题解 3209: 蓝桥杯2024年第十五届省赛真题-好数

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

3209: 蓝桥杯2024年第十五届省赛真题-好数

摘要:解题思路:注意事项:参考代码:def is_good_number(num):    k = 1#初始化变量k为1,用于跟踪当前数字的位数 (这里从右边开始,第一位是奇数)    while num:……

dafasdfasdfasdf

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int ff(int n){ int i=0; int sum; int temp; while(n>0) { t……

好数的常规思路

摘要:解题思路:注意事项:参考代码:#include<stdio.h>inthaoshu(intn);inthaoshu(intn){……

Java简单易懂的方法

摘要:解题思路:注意事项:参考代码:importjava.util.Arrays;importjava.util.Iterator;importjava.util……

to_string的大作用

摘要:参考代码:#include<bits/stdc++.h> using namespace std; #define int long long bool haoshu(int i) { s……

蓝桥杯求好数问题

摘要:解题思路:可以用switch语句来解决此题,写一个来计算一个数的位数的函数,写一个计算好数个数的函数,在此函数中需要调用前一个函数用一个数组来保存这个数的奇偶信息,如果为1则该位为奇数,反之,则为偶。……