编写题解 3209: 蓝桥杯2024年第十五届省赛真题-好数(简单易懂的c语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, i, x, num, sum = 0; scanf("%d", &num); f…… 题解列表 2024年12月18日 18 点赞 0 评论 1477 浏览 评分:10.0
蓝桥杯2024年第十五届省赛真题-好数 摘要: #include int main() { int n; int d = 0;; int u = 1; int c = 0;…… 题解列表 2024年12月07日 1 点赞 0 评论 612 浏览 评分:10.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 评论 902 浏览 评分:0.0
暴力枚举 #3209: 蓝桥杯2024年第十五届省赛真题-好数 摘要:``` #define _CRT_SECURE_NO_WARNINGS 1 #include #include #include #include #include #include …… 题解列表 2024年11月25日 4 点赞 0 评论 618 浏览 评分:9.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
蓝桥杯2024年第十五届省赛真题-好数 摘要: ``` #include int haoshu(int num){ for (int i = 0; num!=0; i++) { int t=nu…… 题解列表 2024年10月29日 2 点赞 0 评论 170 浏览 评分:0.0
蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:注意事项:参考代码#include <iostream>using namespace std;bool check(int x);int main(){ /*一个数奇数位为奇数,偶数位为偶…… 题解列表 2024年10月17日 0 点赞 0 评论 297 浏览 评分:6.0
to_string的大作用 摘要:参考代码:#include<bits/stdc++.h> using namespace std; #define int long long bool haoshu(int i) { s…… 题解列表 2024年10月07日 1 点赞 0 评论 150 浏览 评分:0.0
3209: 蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:注意事项:参考代码:def is_good_number(num): k = 1#初始化变量k为1,用于跟踪当前数字的位数 (这里从右边开始,第一位是奇数) while num:…… 题解列表 2024年10月04日 1 点赞 0 评论 356 浏览 评分:0.0
c语言 好数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int hs(int n){ int k1,k2; int flag; while(1){ …… 题解列表 2024年09月22日 0 点赞 0 评论 374 浏览 评分:8.4