新手写水仙花数判断(c++已过) 摘要:解题思路:由于确定为三位数,所以直接求各位数字即可注意事项:参考代码:#include<iostream>using namespace std;int main(){ for(int i=10…… 题解列表 2024年11月08日 1 点赞 0 评论 971 浏览 评分:10.0
简易,易懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int a,b,c; for (int i=100; i<1…… 题解列表 2024年12月04日 11 点赞 0 评论 2180 浏览 评分:10.0
1016: [编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:for i in range(100,1000): i1=i2=i3=0 i1=(int)(i/100) …… 题解列表 2025年01月20日 2 点赞 0 评论 1805 浏览 评分:10.0
使用for循环遍历所有三位数,一个一个地判断是否符合要求 解题思路:使用for循环遍历所有三位数,一个一个地判断是否符合要求注意事项:注意括号配对,需要细心检查参考代码:#includeusingnamespacestd;//153=1^3+5^3+3^3intmain(){for(inti=100;i<1000;i++){if 题解列表 2025年04月07日 2 点赞 0 评论 1216 浏览 评分:10.0
你就说过没过吧 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<&quo…… 题解列表 2025年07月25日 13 点赞 1 评论 787 浏览 评分:10.0
水仙花数判断(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; for(int i=100;i<1000;i++){ &n…… 题解列表 2026年06月13日 0 点赞 0 评论 714 浏览 评分:10.0
C语言程序设计教程(第三版)课后习题6.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> main() { int x,a,b,c; for(x=100;x<=999;x++) { a=x/100; b=x%1…… 题解列表 2017年07月13日 0 点赞 0 评论 1966 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题6.6 (C++ 和 Java 代码) 摘要:题目描述:打印所有的"水仙花数",所谓"水仙花数"是指一个三位数,其各位数字立方和等于该本身。 例如:153 是一个水仙花数,因为153=13+53+33解题思路:因为水仙花数是一个三位数,所以先用一…… 题解列表 2018年09月21日 14 点赞 0 评论 3458 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题6.6 (Java代码) 摘要:解题思路:暴力破解注意事项:参考代码:import java.lang.*; import java.util.*; import java.io.*; import java.math.*; …… 题解列表 2018年10月13日 0 点赞 1 评论 2047 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题6.6 (C语言代码) #include#include#includeintmain(){intnum=100;inta,b,c;//a为百位,b为十位,c为个位while(num>=100&&num 题解列表 2019年02月27日 0 点赞 0 评论 1382 浏览 评分:9.9