题解列表

筛选

送分了........

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int i,a,b,p=0,q=0,sum=0;    scanf("%d %d",&a,&b);    ……

送分了........

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a,b,c=0,d=0,e=0;    scanf("%d",&a);    while(a)  ……

数组的插入处理

摘要:解题思路:用到了冒泡排序和数组插入注意事项:参考代码:#include <stdio.h>#include <string.h>void swap(int *a,int *b){ int tmp=*a……

送分了........

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    char a[150];    int i;    gets(a);    for(i=0;a[i]!=0……

完数的判断

摘要:解题思路:for循环历遍所有数,每个数判断是否为 完数,即此数=因子之和,(与该数相除的余数为0的数为此数的因子),然后输出要求的数据注意事项:参考代码:#include <stdio.h> int ……