摘要: There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then th 阅读全文
posted @ 2021-03-06 18:26 XA科研 阅读(47) 评论(0) 推荐(0) 编辑
摘要: The string APPAPT contains two PAT's as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the second one is formed 阅读全文
posted @ 2021-03-06 17:18 XA科研 阅读(44) 评论(0) 推荐(0) 编辑
摘要: The "eight queens puzzle" is the problem of placing eight chess queens on an 8 chessboard so that no two queens threaten each other. Thus, a solution 阅读全文
posted @ 2021-03-06 00:49 XA科研 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 模板: #include<bits/stdc++.h> using namespace std; const int maxn=10; int a[maxn];//a[i]表示第i行上的皇后放于a[i]列上,假设a[3]=7:放在第3行第7列上 int cnt=0,n; bool check(int 阅读全文
posted @ 2021-03-06 00:32 XA科研 阅读(43) 评论(0) 推荐(0) 编辑