题解列表

筛选

最简单的方法,我敢保证

摘要:解题思路:再重新搞一个数组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……

1166好兄弟,可以的

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

二级C语言-同因查找

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n,m; for(int i=1;i<=23;i++) { ……