题解列表

筛选

【数组的距离】 (C语言代码)

摘要:解题思路:1.绝对值函数abs()在头文件math.h里面2.最小距离比较得来是关键参考代码:#include<stdio.h> #include<math.h>//包含绝对值函数的头文件 int……

分糖果 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,j,num,n,m=0;  int a[100];  scanf("%d",&n);  for(i……