题解列表
全网最简单思路,简单代码+排序相除即可
摘要:解题思路:首先求等比数列最大比例,题目会给出一个等比数列的子序列。1、先从大到小排序,然后计算每一项与后一项的比例,取最小的比例就是题目要求的了。证明很简单,任意项之间的比值都为q^x,只要找到都能满……
1096扫雷(构建两个数组,for循环遍历实现)
摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;int main(){ int m, n; int k = 1;//后面输出第几组数据用的 whi……
1098陶陶摘苹果(for循环遍历解决)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[15];//存苹果高度 int b;//存陶陶的高度 in……
1099校门外的树(数组解决)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m;//马路长度 int n;//组数 cin >> m >>……
贪心+DP的思路就可以解决问题。。。
摘要:解题思路:按照w+v的值从小到大排列后可以使后面的能够放在下面的可能最大。。。注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const in……
1242: 矩阵转置
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=1e3+5;typedef long long ll;ll……
2886: 图像旋转
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=1e3+5;typedef long long ll;ll……
2880: 计算鞍点
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=1e3+5;typedef long long ll;ll……
1100采药(dp记忆化搜索)
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cstring>using namespace std;const int M……