1120不好意思我的是最简单的C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main (){ int x,a,b,c; for (x=100;x<1000;x++) {…… 题解列表 2021年11月09日 0 点赞 0 评论 131 浏览 评分:0.0
C语言训练-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:for i in map(str,range(100,999)): if int(i[0])**3+int(i[1])**3+int(i[2])**3 == int…… 题解列表 2021年12月16日 0 点赞 0 评论 220 浏览 评分:0.0
C语言训练-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; for(a=1;a<=9;a++) { for(b=0;b…… 题解列表 2021年12月25日 0 点赞 0 评论 232 浏览 评分:0.0
1120: C语言训练-"水仙花数"问题2 摘要:解题思路:1.水仙花数,是三位数;所以范围确定,100-999;2.循环判断确定范围内的数,满足水仙花数的条件,即输出(注意换行输出);注意事项:参考代码:#include<stdio.h>int a…… 题解列表 2022年01月18日 0 点赞 0 评论 138 浏览 评分:0.0
编写题解 1120: C语言训练-"水仙花数"问题2 摘要:#include<stdio.h>int main(){ for(int i=100; i< 1000;i++) //三位数的范围 { int a, b, c; a = i % 10; …… 题解列表 2022年01月25日 0 点赞 0 评论 231 浏览 评分:0.0
1120: C语言训练-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:for n in range(100,1000): a=n%10 b=n//10%10 c=n//100 if(a**3+b**3+c**3==n…… 题解列表 2022年01月28日 0 点赞 0 评论 225 浏览 评分:0.0
Hifipsysta- 1120题-C语言训练-"水仙花数"问题2(C++代码)字符串转换法 摘要:```cpp #include #include #include using namespace std; bool is_narcissus(string str){ in…… 题解列表 2022年01月30日 0 点赞 0 评论 192 浏览 评分:0.0
编写题解 1120: C语言训练-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<ctype.h>using namespace std;int main(){ int a,b,c; f…… 题解列表 2022年03月20日 0 点赞 0 评论 232 浏览 评分:0.0
C语言训练-"水仙花数"问题2 摘要:解题思路:把四个数算出来直接输出注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c,d;int main(){ cout…… 题解列表 2022年05月05日 0 点赞 0 评论 183 浏览 评分:0.0
有些问题还是没有解决 摘要:解题思路:注意事项:所以要注意参考代码:for i in range(100,1000): x=str(i) if i==(int(x[0])**3+int(x[1])**3+int(x[…… 题解列表 2022年05月13日 0 点赞 0 评论 191 浏览 评分:0.0