3209: 蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:注意事项:参考代码:def is_good_number(num): k = 1#初始化变量k为1,用于跟踪当前数字的位数 (这里从右边开始,第一位是奇数) while num:…… 题解列表 2024年10月04日 1 点赞 0 评论 637 浏览 评分: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
好数的常规思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>inthaoshu(intn);inthaoshu(intn){…… 题解列表 2025年04月02日 4 点赞 0 评论 1134 浏览 评分:0.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
蓝桥杯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
蓝桥杯2024年第十五届省赛真题-好数 摘要: ``` #include int haoshu(int num){ for (int i = 0; num!=0; i++) { int t=nu…… 题解列表 2024年10月29日 2 点赞 0 评论 360 浏览 评分: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 评论 321 浏览 评分:0.0
蓝桥杯求好数问题 摘要:解题思路:可以用switch语句来解决此题,写一个来计算一个数的位数的函数,写一个计算好数个数的函数,在此函数中需要调用前一个函数用一个数组来保存这个数的奇偶信息,如果为1则该位为奇数,反之,则为偶。…… 题解列表 2024年09月22日 1 点赞 0 评论 463 浏览 评分:0.0