2805: 乘方计算 快速幂方法 摘要:解题思路: 快速幂注意事项:参考代码:#include <iostream> // #include <sstream> #include <cstdio> // #include <algor…… 题解列表 2023年02月09日 0 点赞 0 评论 408 浏览 评分:0.0
因数平方和(数论分块+数学式子推导) 摘要:~~~ #include using namespace std; const int mod=1e9+7; typedef long long ll; int n; ll qmin(ll…… 题解列表 2023年02月09日 0 点赞 0 评论 761 浏览 评分:5.0
1002: [编程入门]三个数最大值c++代码 摘要:解题思路:先重大到小排序,再输出最大值。注意事项:要输最大值。参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[…… 题解列表 2023年02月09日 0 点赞 0 评论 331 浏览 评分:9.9
K-进制数题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int zuhe(int n,int m){ int z=1; for(int i=…… 题解列表 2023年02月09日 0 点赞 0 评论 278 浏览 评分:9.9
有详解 简单易懂 摘要:```cpp //目标:计算每个科目的平均分以及输出总分最高的学生的信息 #include #include using namespace std; struct student{ s…… 题解列表 2023年02月09日 0 点赞 0 评论 560 浏览 评分:0.0
最大上升子序列和-DP 摘要:#### DP问题 ####注意事项 - 与最长上升子序列问题思路相同,仅仅改变维护的信息。 ###### 代码 ``` #include #include using …… 题解列表 2023年02月09日 0 点赞 0 评论 487 浏览 评分:9.9
最长上升子序列问题3-友好城市 摘要:## 最长上升子序列问题3 ### 注意事项 1.通过分析可以发现,符合标准的序列首先应该满足上下城市的编号都是递增的。 2.那么先对一边的坐标进行排序,再对另一边进行最长上升子序列问题的求…… 题解列表 2023年02月09日 1 点赞 0 评论 405 浏览 评分:9.9
最长上升子序列问题2 摘要:# 最长上升子序列问题 ## 注意事项 1.从题目中可以看出,一开始上升后面下降,即先求上升子序列再求下降子序列。 2.如果用三重循环可能超时,可以先预处理出左右循环,这样就是两重循环。 …… 题解列表 2023年02月09日 0 点赞 0 评论 422 浏览 评分:9.9
最长上升子序列问题 摘要:## 最长上升子序列问题 #### 注意事项 1.需要做两遍(从左开始,从右开始)。 2.数据范围较小,不用优化 ****** ##### 代码 ``` #include #in…… 题解列表 2023年02月09日 0 点赞 0 评论 432 浏览 评分:0.0
2127: 信息学奥赛一本通T1258- 数字金字塔 摘要:解题思路:动态规划逆推法。注意事项:注意是从n-1行开始推参考代码:#include<bits/stdc++.h> using namespace std; int n,a[1005][1005]…… 题解列表 2023年02月09日 0 点赞 0 评论 388 浏览 评分:9.9