题解列表

筛选

数组的插入处理

摘要:解题思路:用到了冒泡排序和数组插入注意事项:参考代码:#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 ……

1094这样写更简单,C++

摘要:解题思路: 一边接收输入一边接收输出注意事项:用getchar()来吸收输入n之后的回车参考代码:#include<iostream>#include<vector>using namespace s……

最普通的解题方法

摘要:解题思路:注意事项:参考代码:#include<math.h>int main(){    int i,n,m;    float s1=0,s2=0;    scanf("%d %d",&n,&m)……