摘要: #include <stdio.h> int is(int number); void count_sum(int a, int b); int main() { int a, b; scanf("%d %d", &a, &b); if (is(a)) printf("%d is counted.\ 阅读全文
posted @ 2022-03-01 09:13 JamesGordan 阅读(93) 评论(0) 推荐(0)
摘要: #include <stdio.h> #define MAXS 10 char *match(char *s, char ch1, char ch2); int main() { char str[MAXS], ch_start, ch_end, *p; scanf("%s\n", str); sc 阅读全文
posted @ 2022-02-28 09:35 JamesGordan 阅读(101) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <string.h> #define MAXS 10 char *str_cat(char *s, char *t); int main() { char *p; char str1[MAXS + MAXS] = { '\0' }, str2[ 阅读全文
posted @ 2022-02-28 09:10 JamesGordan 阅读(47) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <string.h> #include <stdlib.h> #define MAXN 10 #define MAXS 20 int max_len(char *s[], int n); int main() { int i, n; char 阅读全文
posted @ 2022-02-28 08:58 JamesGordan 阅读(36) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <string.h> #define MAXS 80 int getindex(char *s); int main() { int n; char s[MAXS]; scanf("%s", s); n = getindex(s); if (n 阅读全文
posted @ 2022-02-27 21:10 JamesGordan 阅读(15) 评论(0) 推荐(0)
摘要: #include <stdio.h> char *getmonth(int n); int main() { int n; char *s; scanf("%d", &n); s = getmonth(n); if (s == NULL) printf("wrong input!\n"); else 阅读全文
posted @ 2022-02-27 20:59 JamesGordan 阅读(41) 评论(0) 推荐(0)
摘要: #include <stdio.h> void printdigits(int n); int main() { int n; scanf("%d", &n); printdigits(n); system("pause"); return 0; } /* 你的代码将被嵌在这里 */ void pr 阅读全文
posted @ 2022-02-27 20:49 JamesGordan 阅读(30) 评论(0) 推荐(0)
摘要: #include <stdio.h> void dectobin(int n); int main() { int n; scanf("%d", &n); dectobin(n); system("pause"); return 0; } /* 你的代码将被嵌在这里 */ void dectobin 阅读全文
posted @ 2022-02-27 20:27 JamesGordan 阅读(80) 评论(0) 推荐(0)
摘要: #include <stdio.h> int f(int n); int main() { int n; scanf("%d", &n); printf("%d\n", f(n)); system("pause"); return 0; } /* 你的代码将被嵌在这里 */ int f(int n) 阅读全文
posted @ 2022-02-26 20:11 JamesGordan 阅读(55) 评论(0) 推荐(0)
摘要: #include <stdio.h> int Ack(int m, int n); int main() { int m, n; scanf("%d %d", &m, &n); printf("%d\n", Ack(m, n)); system("pause"); return 0; } /* 你的 阅读全文
posted @ 2022-02-26 20:05 JamesGordan 阅读(52) 评论(0) 推荐(0)