C语言训练-"水仙花数"问题1 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int number; int originalNumber, remainder, resul…… 题解列表 2023年11月06日 0 点赞 0 评论 132 浏览 评分:0.0
C语言--好理解 摘要:解题思路:简单的if语句的使用;注意事项:用pow(n,m)表示立方,不然只有75分。pow(n,m)代表n的m次方;参考代码:#include <stdio.h>int main(){ int…… 题解列表 2023年11月18日 0 点赞 0 评论 218 浏览 评分:0.0
无聊的星期六 摘要:解题思路:注意事项:参考代码:x=input() if int(x)==sum(((int(x[i])**3) for i in range(3))): print(1) else: …… 题解列表 2024年04月20日 0 点赞 0 评论 187 浏览 评分:0.0
1119水仙花数问题1(使用%1d的输入方式获取每一位数) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int a; int b; int c;…… 题解列表 2024年06月12日 0 点赞 0 评论 156 浏览 评分:0.0
1119: C语言训练-"水仙花数"问题1 摘要:解题思路:1,倒序。 g = n % 10;%10的结果是他的个位,个位我们用g表示。 n = n / 10;/10是剩下的数。 fn = fn + g * g * g;这是倒序后…… 题解列表 2024年07月19日 0 点赞 0 评论 168 浏览 评分:0.0
1119: C语言训练-"水仙花数"问题1 摘要:```cpp #include using namespace std; int a,b,c; int sxh(int n) { a=n/100; b=n/10%10; c=n%…… 题解列表 2024年07月30日 0 点赞 0 评论 218 浏览 评分:0.0
1119简单if循环 摘要:解题思路:把数学公式理解就好了注意事项:参考代码:#include<stdio.h>#include<math.h>#define P(x) pow(x,3)int main(){ int a,b,c…… 题解列表 2024年12月04日 0 点赞 0 评论 148 浏览 评分:0.0
c语言代码详细 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int a,b,c,n; scanf ("%d",&n); …… 题解列表 2024年12月04日 0 点赞 0 评论 323 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int b,bjg = 0,yx = 0,hx = 0; scanf("%d…… 题解列表 2024年12月04日 0 点赞 0 评论 469 浏览 评分:0.0
C语言训练-"水仙花数"问题1-题解(C++代码) 摘要:# MarkDown编辑器基本使用说明 **如果这是您第一次使用MarkDown编辑器,建议先阅读这篇文章了解一下Markdown的基本使用方法。** ## 实时预览、全屏显示 ![…… 题解列表 2020年02月06日 0 点赞 0 评论 484 浏览 评分:2.0