题解列表

筛选

求最大值sdgafsdgasd

摘要:解题思路:注意事项:参考代码:#include "stdio.h"int MAX(int arr[], int L, int R) { if (L == R)  { int s = arr[L]; ……

利用数组求偶数和

摘要:解题思路:利用数组来储存所输入的数字,对于数组的大小可以用scanf来确定n,然后就是在for中使用数组,for中用if对数组中的数字进行判断,若为偶数这sum=sum+a[i],最后输出sum即可注……

【C不C吧】我好短!

摘要:解题思路:注意事项:求救大佬,我这为啥子会输出超限?参考代码:#include<stdio.h>int main(){ char c; while ((c = getchar()) != &#39;\……

C语言训练-尼科彻斯定理

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

冒泡法简洁些

摘要:解题思路:冒泡法注意事项:俩次排序的范围参考代码:#include<stdio.h>int main(){     int a[10];     int x,t; for(int i=0;i<10;i……

让我来写个笨方法

摘要:解题思路:用for循环来进行排序注意事项:莫得参考代码:#include <stdio.h>#include <string.h>int change(char a[],char b[]){ //ch……