使用for 循环语句 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { for (int n = 100; n < 1000;…… 题解列表 2023年09月04日 0 点赞 0 评论 198 浏览 评分:9.9
c加加 解决问题 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;#include <math.h>int main() { for (long long i…… 题解列表 2023年03月21日 0 点赞 0 评论 136 浏览 评分:0.0
c++水仙花数判断 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a = 0; for(int i=100;i<=…… 题解列表 2023年03月09日 0 点赞 0 评论 170 浏览 评分:0.0
c++解题思路 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int main(){ for(int i=100;i<…… 题解列表 2023年03月02日 0 点赞 0 评论 166 浏览 评分:9.9
编写题解 1016: [编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int x,y,z; for(int a=100; a<1000; …… 题解列表 2023年01月06日 0 点赞 0 评论 130 浏览 评分:0.0
水仙花数的判断 摘要:解题思路:获取个位数:对数字取模于10获得个位数(%10)获取十位数:先整除10得到两位数(/10)再取模于10得到十位(%10)获取百位数:直接整除于100;注意事项:参考代码:#include<i…… 题解列表 2022年12月14日 0 点赞 0 评论 207 浏览 评分:0.0
水仙花数判断 摘要: #include using namespace std; int main() { int a, b, c; for (int i = …… 题解列表 2022年10月10日 0 点赞 0 评论 128 浏览 评分:0.0
1016: [编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <cmath> using namespace std; int main() { for (…… 题解列表 2022年10月08日 0 点赞 0 评论 165 浏览 评分:2.0
1016-水仙花数判断 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int a,b,c=3; …… 题解列表 2022年10月04日 0 点赞 0 评论 197 浏览 评分:0.0
"水仙花数判断"题解 摘要:解题思路:要判断一个数是不是水仙花数,就是在判断它的百、十、个位的立方是否等于它本身。要取一个数的百、十、个位:百:x/100;十:x%100/10;个:x%10.立方可以调用math.h库中的pow…… 题解列表 2022年09月11日 0 点赞 0 评论 374 浏览 评分:0.0