题解列表

筛选

【排队买票】 (C语言代码)

摘要:解题思路:用递归求出总共有多少种可行的情况,再用全排列来求出总情况注意事项:参考代码:#include <stdio.h>int fact(int a){ int i, sum = 1; for (i……

花落的新手算法(C语言代码)

摘要:解题思路:学过结构体的就可以做啦,没什么难度。注意事项:参考代码:#include<stdio.h>#define AUM(x,y) {struct student  t;t=x;x=y;y=t;}s……