06 2020 档案
摘要:1 #include <stdio.h> 2 3 int main(void) 4 { 5 int n, i, j, length, k, m; 6 char array[10][10]; 7 int x1, y1, x2, y2; 8 int isError = 0; 9 int isRight
阅读全文
摘要:1 #include <stdio.h> 2 3 int main(void) 4 { 5 int n, i, j, number; 6 int array[10][10]; 7 int top, bottom, left, right; 8 9 scanf("%d", &n); 10 top =
阅读全文
摘要:1 #include <stdio.h> 2 3 int main(void) 4 { 5 int n; 6 int i, j, array[11][11] = {{0}}; 7 8 scanf("%d", &n); 9 array[0][1] = 1; 10 //生成杨辉三角形 11 for (i
阅读全文
摘要:#include <stdio.h> //返回number装到箱子的索引 int myFunc(int array[], int length, int number) { int i, index = -1; for (i = 0; i < length; i++) { if (array[i]
阅读全文
摘要:题目一开始没看懂 #include <stdio.h> //数组选择排序 void sortArray(int array[], int length) { int index, temp; for (int i = 0; i < length - 1; i++) { index = i; for
阅读全文
摘要:用链表的方法解决 #include <stdio.h> #include <stdlib.h> typedef struct node { int index; int number; struct node *next; } NODE, *LINK; void addNode(LINK head,
阅读全文
摘要:#include <stdio.h> int max(int a, int b); int min(int a, int b); int main(void) { int num, a, b, c; int t, maxNum, midNum, minNum; int big, small, i;
阅读全文
摘要:#include <stdio.h> int main(void) { int a, b, c; int max, mid, min; scanf("%d%d%d", &a, &b, &c); if (a > b) { if (a > c) { max = a; if (b > c) { mid =
阅读全文
摘要:这个题目的纯虚根问题搞的头大,其实没意思。 #include <stdio.h> #include <math.h> int main(void) { double a, b, c; scanf("%lf%lf%lf", &a, &b, &c); double delta = b * b - 4 *
阅读全文