题解列表

筛选

x皇后问题—字典序最小(dfs)

摘要:解题思路:dfs回溯即可,第一个即为字典序最小注意事项:记得终止程序参考代码:#include<iostream> using namespace std; const int N=10010; ……

最大公约数与最小公倍数(C语言)

摘要:解题思路:  利用定义法求解。注意事项:  不要使用中文输入法编写代码。参考代码:#include<stdio.h>int main(){    int m,n,i,j;    int max = 0……

绝对值排序

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#include<string.h>void sort(int a[100],int len){ int……

牛吃牧草(六年级天天写)

摘要:解题思路:小学题目 你不能不会吧注意事项:参考代码:#include<iostream> using namespace std; int main() {     int n;     c……

电影票(无聊刷题)

摘要:解题思路:很简单 没啥好说的 写不对就自杀吧注意事项:参考代码:#include<iostream> using namespace std; int main() {     int n; ……