题解列表

筛选

数数字 (C++代码)很速度

摘要:解题思路:    过后再更新,反正原理大概就是区间两端求余再取值看情况就可以了。参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdi……

线段覆盖 (C++代码)

摘要:解题思路:这我也是服了,本来准备写一些什么线段树啊区间维护啊之类的东西,后来想了想决定先暴力看看数据错误情况先,结果暴力直接过了。参考代码:#include<bits/stdc++.h> #defi……

线段覆盖 (C++代码)

摘要:解题思路:模拟法注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int arr[100000]; int main() { ……

矩阵嵌套 (C++代码)

摘要:码一下代码:#include <iostream> using namespace std; int main() {     int N, n, a, b;     int i, j……

汽水瓶 (C++代码)

摘要:参考代码:#include<iostream> using namespace std; int get(int x) {     if(x<=1) return 0;     if(x==……

P1004 (C++代码)简短易懂,回溯减枝

摘要:解题思路:回溯减枝注意事项:避免重复搜索,之前已经搜索过的点保存于d数组中;参考代码:int r, c;int map[100][100], d[100][100];int dx[4] = {0, 1……