题解列表
信息学奥赛一本通T1263-友好城市
摘要:解题思路:转化为最长不下降子序列注意事项:参考代码:#include<iostream>
#include<utility>
#include<algorithm>
using namespac……
究极空间换时间之无脑枚举
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=1e5+10;int a0[N],a1[N],a2[N],a……
信息学奥赛一本通TT1262-挖地雷
摘要:解题思路:DP 逆推, 邻接矩阵注意事项:参考代码:#include<iostream>
#include<algorithm>
using namespace std;
const int N……
python--study||O.o
摘要:参考代码:from copy import deepcopy
dx = (-1, 0, 1, 0)
dy = (0, -1, 0, 1)
def judge(x, y):
fo……
2518: 信息学奥赛一本通T1620-质因数分解
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>n; ……
2832: 第n小的质数
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0; cin>>n; ……
python--study||O.o
摘要:参考代码:arr = [[0] * 9 for _ in range(9)]
temp = [[0] * 9 for _ in range(9)]#辅助列表,接收变化后的数据
dx = (-1,0……