题解列表

筛选

最小绝对值C语言

摘要:#include<stdio.h>#include<string.h>#include<math.h>int main(){int a[10];for(int i=0;i<10;i++){scanf(……

迭代法求平方根C语言

摘要:#include<stdio.h>#include<math.h>int main(){long int n;int i=0;scanf("%ld",&n);double a[1000];a[0]=(……

完数的判断C语言

摘要:#include<stdio.h>void find(int n){int sum=0,a[n];int j=0;for(int i=1;i<n;i++){if(n%i==0){sum+=i;a[j]……

阶乘求和C语言

摘要:#include<stdio.h>long int create(int n){    long int num=1;    for(int i=1;i<=n;i++)    {           ……

1219: 数列排序

摘要:解题思路:观察输出,发现比第一位小的排序是靠右的排在前面,所以先从最后面开始遍历数组,找到比第一位小的就打印出来,然后再打印比第一位大的数参考代码:#include <stdio.h> int ……

[编程入门]数字的处理与判断python

摘要:解题思路:注意事项:参考代码:number = input()a = str(number)        #将输入的数转化为字符串形式print(len(a))               #转化后……

调用函数,不用辗转相除

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int gcd(int a,int b){    if(b==0)        return a;    else        r……