找出N之内的所有完数,并按格式输出其因子C语言程序设计教程(第三版)课后习题6.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ long double N, sum = 0; int factor[100…… 题解列表 2018年08月27日 0 点赞 0 评论 1732 浏览 评分:0.0
简单的数学题 (Java代码) 摘要:Scanner sc=new Scanner(System.in); while(sc.hasNext()) { double x=sc.nextDouble(); double…… 题解列表 2018年08月27日 0 点赞 0 评论 1004 浏览 评分:0.0
奇偶的秘密 (Java代码) 摘要:Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int arr[]=new int[n]; for(i…… 题解列表 2018年08月27日 0 点赞 0 评论 798 浏览 评分:0.0
教学楼的楼梯 (Java代码) 摘要:Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int arr1[]=new int[n]; for(…… 题解列表 2018年08月27日 0 点赞 0 评论 853 浏览 评分:0.0
"水仙花数"是指一个三位数,其各位数字立方和等于其本身。如:153是一个水仙花数,因为153=1^3+5^3+3^3。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,i; for(i=100; i<=999; i++) //for()循环中i从…… 题解列表 2018年08月27日 0 点赞 0 评论 1530 浏览 评分:0.0
蓝桥杯算法训练VIP-传纸条 (C++代码) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; const int SIZE = 52; int Map[SIZE][SIZE]; in…… 题解列表 2018年08月26日 0 点赞 0 评论 1091 浏览 评分:9.9
蓝桥杯算法训练VIP-方格取数 (C++代码) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; const int SIZE = 10; int Map[SIZE][SIZE]; in…… 题解列表 2018年08月26日 0 点赞 0 评论 1343 浏览 评分:9.9
用筛法求之N内的素数。 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int prime(int i)//判断是否为素数的函数{ int j; if(i==2…… 题解列表 2018年08月26日 0 点赞 0 评论 634 浏览 评分:0.0
#include<stdio.h> int main() { double a=100,b=50,c=10,sum1=0,sum2=0,sum3=0,sum=0,i; scanf(" 摘要:参考代码:#include<stdio.h>int main(){ double a,b,c,sum1=0,sum2=0,sum3=0,sum=0,i; scanf("%lf",&a); scanf(…… 题解列表 2018年08月26日 0 点赞 0 评论 1649 浏览 评分:0.0
先求阶乘,后求和#include<stdio.h> int main() { long double sum=0,sn=1; int n; scanf("%d",&n); for(int 摘要:先求阶乘,后求和;先来普及一下阶乘的相关概念;表达式 x!中文名称 阶乘外文名称 factorial问 五的阶乘是多少呢?答 五的阶乘是一百二十啊!5!=1*2*3*4*5=120注意 因为小数是…… 题解列表 2018年08月26日 0 点赞 0 评论 1400 浏览 评分:8.4