三位数水仙花数求解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,number; scanf("%d",&number); a=n…… 题解列表 2022年01月10日 0 点赞 2 评论 745 浏览 评分:9.9
c语言 水仙花数"问题1 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y,z; int q; scanf("%d",&q); x=q/100; …… 题解列表 2021年12月25日 0 点赞 0 评论 591 浏览 评分:0.0
反其道而行 摘要:解题思路:本题可以使用字符串或直接用数字写,直接用数字过于容易,我们用字符串来写这题,锻炼思维注意事项:用string.h库函数strlen( )来获取字符长度,(整形数字=字符型数字-字符0)->例…… 题解列表 2021年12月21日 0 点赞 0 评论 995 浏览 评分:9.9
C语言训练-"水仙花数"问题1 摘要:解题思路: 拆分数位+逻辑参考代码:#include <stdio.h> int main() { int a, a1, a2, a3, b, panduan; scanf("%d",…… 题解列表 2021年11月12日 0 点赞 0 评论 1186 浏览 评分:9.9
1119难不倒我的嘿嘿C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main (){ int a,b,c,x;scanf("%d",&x); if (x>=100&…… 题解列表 2021年11月07日 0 点赞 0 评论 568 浏览 评分:0.0
C语言训练-"水仙花数"问题1-(输入数据超过3位的解法拓展)(C++代码) 摘要:**解题思路:** 题目中限制了输入数值的位数为3位,然后进行计算。解法有很多种,而且比较简单。 但是,如果不限制位数,又该如何判定该数是否是“水仙花数”呢? 下面给出我个人的解法,大家可以参…… 题解列表 2021年09月29日 0 点赞 0 评论 1006 浏览 评分:9.9
解 1119: C语言训练-"水仙花数"问题1 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>void shuixianhua();int x;int main(){ scanf("%d",&…… 题解列表 2021年09月15日 0 点赞 0 评论 502 浏览 评分:0.0
水仙花数,挺有意思的~~ 摘要:解题思路:首先控制输入的数据是个三位数;再将个,十,百位上的数字表示出来;最后利用if判断完成。注意事项:参考代码:#include<stdio.h>int main(){ int n…… 题解列表 2021年08月11日 0 点赞 0 评论 779 浏览 评分:6.0
[编程入门]C语言训练-"水仙花数"问题1-题解(C语言代码) 摘要:解题思路:char数组赋值给int类型pow(x,y)计算立方参考代码:#include<stdio.h>#include<math.h>void waterF(char a[]){ int i,j;…… 题解列表 2021年08月07日 0 点赞 0 评论 704 浏览 评分:0.0
题解 1119: C语言训练-"水仙花数"问题1 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int num,o,t,h; scanf("%d",&num…… 题解列表 2021年06月29日 0 点赞 0 评论 546 浏览 评分:8.0