写题解 1119: C语言训练-"水仙花数"问题1 摘要:#include<stdio.h>int main(){ int num; scanf("%d",&num);int a, b, c; a = num % 10; //取个位的数字 b…… 题解列表 2022年01月25日 0 点赞 0 评论 486 浏览 评分:0.0
C语言训练-"水仙花数"问题1 摘要:解题思路:判断各位数的立方和与该数本身是否相等,相等输出1,不相等输出0;注意事项:无参考代码:#include<stdio.h>#include<string.h>int a,b,c,d;void …… 题解列表 2022年01月18日 0 点赞 0 评论 527 浏览 评分:0.0
三位数水仙花数求解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,number; scanf("%d",&number); a=n…… 题解列表 2022年01月10日 0 点赞 2 评论 681 浏览 评分: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 评论 509 浏览 评分:0.0
反其道而行 摘要:解题思路:本题可以使用字符串或直接用数字写,直接用数字过于容易,我们用字符串来写这题,锻炼思维注意事项:用string.h库函数strlen( )来获取字符长度,(整形数字=字符型数字-字符0)->例…… 题解列表 2021年12月21日 0 点赞 0 评论 906 浏览 评分:9.9
编写题解 1119: C语言训练-"水仙花数"问题1 摘要:解题思路:n = input()sum0 = 0for i in n: sum0 += int(i)**3if sum0 == int(n): print(1)else: print…… 题解列表 2021年12月16日 0 点赞 0 评论 750 浏览 评分:9.9
C语言训练-"水仙花数"问题 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int n; int main() { int a; cin>…… 题解列表 2021年11月21日 0 点赞 0 评论 595 浏览 评分:0.0
C语言训练-"水仙花数"问题1 摘要:解题思路: 拆分数位+逻辑参考代码:#include <stdio.h> int main() { int a, a1, a2, a3, b, panduan; scanf("%d",…… 题解列表 2021年11月12日 0 点赞 0 评论 1055 浏览 评分: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 评论 487 浏览 评分:0.0