题解列表
c语言string解法
摘要:解题思路:注意事项:注意字符串的表达参考代码:#include <stdio.h>#include <string.h>int main(){ int N; char S1[50],S2[……
信息学奥赛一本通T1317-组合的输出,深搜
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"
using namespace std;
// 全局变量声明
int n, r, a[100] = {1}; // ……
状态压缩DP #2495: 信息学奥赛一本通T1592-国王
摘要:**大体思路**
如果 n=3,那么 [1 0 0 ] 代表第一行第一个位置放置棋子
由于每一行怎么摆放,只会受到上一行棋子摆放带来的影响
所以我们枚举每一行的所有==合法状态==,……
关键词:指针、数组和函数之间地址的传递
摘要:参考代码:#include <stdio.h>
#include <math.h>
#include <string.h>
void sort(char **p,int n) //用于排序的……