上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页
摘要: 1 #include<stdio.h> 2 3 int main(void) 4 { 5 int m, n; 6 int a[6][6]; 7 8 scanf_s("%d %d", &m, &n); 9 10 for (int i = 0; i < m; i++) 11 { 12 for (int 阅读全文
posted @ 2019-12-06 16:45 jason2018 阅读(454) 评论(0) 推荐(0)
摘要: 1 #include<stdio.h> 2 3 int main(void) 4 { 5 int t; 6 scanf_s("%d", &t); 7 8 for (int i = 0; i < t; i++) 9 { 10 int n; 11 int a[10][10]; 12 13 scanf_s 阅读全文
posted @ 2019-12-06 11:38 jason2018 阅读(646) 评论(0) 推荐(0)
摘要: 1 #include<stdio.h> 2 3 int main(void) 4 { 5 int n; 6 int number[1000]; 7 int digit[10] = {0}; //记录每个数字出现的次数 8 int temp; 9 10 scanf_s("%d", &n); 11 fo 阅读全文
posted @ 2019-12-06 10:50 jason2018 阅读(1282) 评论(0) 推荐(0)
摘要: 1 #include<stdio.h> 2 3 int main(void) 4 { 5 int n; 6 int number[10]; 7 8 scanf_s("%d", &n); 9 10 for (int i = 0; i < n; i++) 11 { 12 scanf_s("%d", &n 阅读全文
posted @ 2019-12-05 16:40 jason2018 阅读(807) 评论(0) 推荐(1)
摘要: 1 #include<stdio.h> 2 3 int main(void) 4 { 5 char str[80]; 6 char chs[80]; 7 int i; 8 for (i = 0; i < 80; i++) 9 { 10 str[i] = getchar(); 11 if (str[i 阅读全文
posted @ 2019-12-05 16:15 jason2018 阅读(527) 评论(0) 推荐(0)
摘要: 1 #include<stdio.h> 2 3 int main(void) 4 { 5 int i; 6 char str[80]; 7 char ch, temp; 8 9 ch = getchar(); //需要查找的字符 10 temp = getchar(); //第一行回车 11 12 阅读全文
posted @ 2019-12-05 14:24 jason2018 阅读(934) 评论(0) 推荐(1)
摘要: 1 #include<stdio.h> 2 3 int day_of_year(int year, int month, int day); 4 int main(void) 5 { 6 int year, month, day; 7 8 scanf_s("%d/%d/%d", &year, &mo 阅读全文
posted @ 2019-12-04 13:22 jason2018 阅读(300) 评论(0) 推荐(0)
摘要: 用了两个矩阵来完成,可能会有更好的方法。 1 #include<stdio.h> 2 3 int main(void) 4 { 5 int a[6][6], b[6][6]; 6 int m, n; 7 int temp; 8 9 scanf_s("%d %d", &m, &n); 10 11 fo 阅读全文
posted @ 2019-12-04 13:03 jason2018 阅读(1556) 评论(0) 推荐(0)
摘要: 1 #include<stdio.h> 2 3 int main(void) 4 { 5 int a[10][10]; 6 int n; 7 8 scanf_s("%d", &n); 9 10 for (int i = 0; i < n; i++) 11 { 12 for (int j = 0; j 阅读全文
posted @ 2019-12-04 09:51 jason2018 阅读(519) 评论(0) 推荐(0)
摘要: 1 void StringCount(char s[]) 2 { 3 int letter, blank, digit, other; 4 5 letter = 0; 6 blank = 0; 7 digit = 0; 8 other = 0; 9 10 int i = 0; 11 while (s 阅读全文
posted @ 2019-12-03 09:23 jason2018 阅读(2700) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页