C语言训练-"水仙花数"问题2易理解,初学者 摘要:解题思路:因为是三位数,所以n的范围为100-999,可以用for遍历,在n小于1000的条件下,n自增,这样就可以在满足水仙花数的条件下可以按照从小到大的顺序输出。当然,如果是从n999-100自减…… 题解列表 2022年03月20日 0 点赞 0 评论 1076 浏览 评分:9.9
水仙花数题解 摘要:解题思路:1——计算机。2——人工。注意事项:无参考代码:人工#include<bits/stdc++.h>using namespace std;int main(){ cout<<153<<…… 题解列表 2022年05月28日 0 点赞 0 评论 510 浏览 评分:9.9
穷举求解。。。。。。。。 摘要:解题思路:无注意事项:无参考代码:a,b,c=0,0,0 for i in range(100,1000): a=int(i/100) b=int(i/10%10) c…… 题解列表 2022年07月17日 0 点赞 0 评论 600 浏览 评分:9.9
编写题解 1120: C语言训练-"水仙花数"问题2 摘要:C语言训练-"水仙花数"问题1https://blog.dotcpp.com/a/89516 ```c //水仙花数问题2 #include #include void IsDaffod…… 题解列表 2022年08月19日 0 点赞 0 评论 535 浏览 评分:9.9
1120: C语言训练-"水仙花数"问题2 摘要:简简单单,回味无穷 ```cpp #include using namespace std; int s3(int g) { return g*g*g; } int main(…… 题解列表 2022年09月11日 0 点赞 0 评论 530 浏览 评分:9.9
C语言训练-"水仙花数"问题2(小白写C++) 摘要:#include<iostream> using namespace std; int main() { int i,a,b,c; for(i=100;i<100…… 题解列表 2022年10月25日 0 点赞 0 评论 469 浏览 评分:9.9
天才的想法 摘要:解题思路:先老老实实用代码算出所有的数字再输出注意事项:先用程序解决问题,再缩减时间复杂度int i,a,b,c;for(i=100;i<1000;i++){a=i/100; b=i/10%10;c=…… 题解列表 2022年10月26日 0 点赞 1 评论 402 浏览 评分:9.9
卑鄙小人的手段 摘要:解题思路:不告诉你注意事项:无参考代码:#include<iostream>using namespace std;int main(){cout<<153<<endl<<370<<endl<<371…… 题解列表 2022年12月24日 0 点赞 0 评论 428 浏览 评分:9.9
1120: C语言训练-"水仙花数"问题2——Ccp 摘要:解题思路:注意事项:参考代码:#include<math.h>int main(){ int i; for(i=100;i<=999;i++){ int onesplace=i%10; int t…… 题解列表 2023年03月07日 0 点赞 0 评论 532 浏览 评分:9.9
水仙花数问题2 摘要:解题思路:注意事项:参考代码:for n in range(100,1000): a=n%10 #个位 b=int(n/10)%10 #十位 int()强转:强转成整数 c…… 题解列表 2023年04月19日 1 点赞 0 评论 534 浏览 评分:9.9