摘要: #include <stdio.h> double P(int n, double x); int main() { int n; double x; scanf("%d %lf", &n, &x); printf("%.2f\n", P(n, x)); system("pause"); retur 阅读全文
posted @ 2022-03-08 08:41 JamesGordan 阅读(119) 评论(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-03-08 08:36 JamesGordan 阅读(46) 评论(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-03-07 10:17 JamesGordan 阅读(85) 评论(0) 推荐(0)
摘要: #include <stdio.h> double fn(double x, int n); int main() { double x; int n; scanf("%lf %d", &x, &n); printf("%.2f\n", fn(x, n)); system("pause"); ret 阅读全文
posted @ 2022-03-07 10:05 JamesGordan 阅读(59) 评论(0) 推荐(0)
摘要: #include <stdio.h> double calc_pow(double x, int n); int main() { double x; int n; scanf("%lf %d", &x, &n); printf("%.0f\n", calc_pow(x, n)); system(" 阅读全文
posted @ 2022-03-07 10:00 JamesGordan 阅读(58) 评论(0) 推荐(0)
摘要: #include <stdio.h> double fact(int n); double factsum(int n); int main() { int n; scanf("%d", &n); printf("fact(%d) = %.0f\n", n, fact(n)); printf("su 阅读全文
posted @ 2022-03-07 09:45 JamesGordan 阅读(32) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <math.h> int search(int n); int main() { int number; scanf("%d", &number); printf("count=%d\n", search(number)); system("p 阅读全文
posted @ 2022-03-07 09:32 JamesGordan 阅读(62) 评论(0) 推荐(0)
摘要: #include <stdio.h> #define MAXN 10 struct student { int num; char name[20]; int score; char grade; }; int set_grade(struct student *p, int n); int mai 阅读全文
posted @ 2022-03-07 09:02 JamesGordan 阅读(115) 评论(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-03-07 08:32 JamesGordan 阅读(46) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <string.h> #define MAXN 20 typedef enum { false, true } bool; bool palindrome(char *s); int main() { char s[MAXN]; scanf(" 阅读全文
posted @ 2022-03-06 10:08 JamesGordan 阅读(98) 评论(0) 推荐(0)