随笔分类 -  算法

摘要:1 #include<stdio.h> 2 #include<string.h> 3 #include<stdlib.h> 4 #define mod 1000 5 6 int rapidly_power(int base, int power); 7 8 int main(void) { 9 in 阅读全文

posted @ 2020-11-05 21:02 黑炽 阅读(100) 评论(0) 推荐(0)

摘要:#include<stdio.h> void Hanoi(int n, char a, char b, char c); void move(char a, int n, char c); int count = 0; int main(void){ int n; char a = 'A', b = 阅读全文

posted @ 2020-07-23 18:36 黑炽 阅读(125) 评论(0) 推荐(0)

摘要:1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 5 typedef struct bigInt { 6 char* num;//指向长整数数组,序号0中保存着最低位,也就是倒序存放 7 char minus;//符号,1 阅读全文

posted @ 2020-05-17 08:04 黑炽 阅读(256) 评论(0) 推荐(0)

摘要:1 //挺有意思的小游戏,可以在N,M这里改动数据。 2 #include<stdio.h> 3 #include<stdlib.h> 4 #define N 41//总人数 5 #define M 3//数到3 出列 6 int main(void) { 7 int people[N] = { 0 阅读全文

posted @ 2020-05-17 08:01 黑炽 阅读(164) 评论(0) 推荐(0)