题解列表

筛选

简单易懂的写法

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

1029,好懂的方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>  int main(){  int i,a;  scanf("%d",&a);  for(i=2;i<=a-1;i++)  if(a……

最简单的方法,我敢保证

摘要:解题思路:再重新搞一个数组b,b的位置要对应a的位置,b数组是a数组绝对值的翻版,所以用它来比较大小,这个答案在网页上错误50%,我也不懂,但是这个放在DEVC++上的结果是正确的,注意事项:参考代码……

最简单c解法

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

题解 1169: 绝对值排序

摘要:参考代码:#include<stdio.h>#include<math.h>#define N 100void main(){   int i,j,k,s,t,temp,a[N][N];      f……

数字逆序输出

摘要:解题思路:1.利用数组来储存十个数字;2.需要用到for循环来完成逆序输出;注意事项:需要理解数组用法参考代码:#include<stdio.h>int main(){ int a[10],i; fo……

二级C语言-公约公倍(函数)

摘要:解题思路:利用函数进行循环.注意事项:参考代码:#include <iostream>using namespace std;int f(int a,int b){    if(b==0) retur……

二级C语言-计负均正

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <iomanip>using namespace std;int main(){ int n,sum1=0,sum……