题解列表
高精度板子题,重点为四舍五入
摘要://这道题目着重考察了高精度存储数字与高精度乘法,重点在于如何对小数进行四舍五入的计算和只输出整数部分include using namespace std;int n;strin……
主要考查化简S的公式化简
摘要://根据公式,求的是三个数的最大公因数的最大值,并输出这三个数//用一个数组存储一下每个h的因数出现的次数,并找出次数>=3的为最大公因数int n; //h值的个数 int h[100……
密码判断最简单的解题思路
摘要:这里我就维护一个bool数组a进行简单模拟 #include using namespace std; const int N=1e5+10; int a[N],t[N]; str……
骑马修栅栏(dfs)
摘要:#include<bits/stdc++.h>using namespace std;const int N = 1e3 + 26;int mapp[N][N], S[N], ans[N]……
使用随机轴点避免最坏情况
摘要:#include <iostream>#include <cstdlib> // 用于随机数生成using namespace std;int arr[100000……
1025c++set秒了
摘要:解题思路:set秒了参考代码:#include <iostream>#include<set>using namespace std;int main(){ &nb……
1023c++超简单方法(set)
摘要:解题思路:利用c++的set的特性进行排序,但是本题需要保存重复数据,故使用multiset参考代码:#include <iostream>#include<set>using……