优先队列 + map 摘要:解题思路:数据为10e5 暴力n^2 肯定会超时可以利用小根堆来做注意事项:由于value不断的加可能超过INT_MAX,所以value类型为long long参考代码:#include<iostr…… 题解列表 2023年12月14日 0 点赞 2 评论 997 浏览 评分:9.5
c++指针法(指针练习) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ char arr[100]; cin.getline(arr,100…… 题解列表 2023年12月14日 0 点赞 0 评论 267 浏览 评分:0.0
C++二维数组装置,可不限与3*3大小 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int arr[3][3]; int i,j; for (i=0;i…… 题解列表 2023年12月14日 0 点赞 0 评论 179 浏览 评分:0.0
编写题解 2784: 收集瓶盖赢大奖 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b; cin>>a>>b; if(10…… 题解列表 2023年12月14日 0 点赞 0 评论 174 浏览 评分:0.0
1043: [编程入门]三个数字的排序(插入排序思想) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a[3] = {0}; for (int…… 题解列表 2023年12月14日 0 点赞 0 评论 127 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-刷题统计(循环的简单解法) 摘要:解题思路: 要首先算出n有多少个7天,然后就有剩下的小于7天的了。注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ l…… 题解列表 2023年12月14日 0 点赞 0 评论 446 浏览 评分:9.9
题解 2912: 最长平台 摘要: #include using namespace std; int a[20000],c,d,n; int main() { cin>>n; …… 题解列表 2023年12月13日 0 点赞 0 评论 220 浏览 评分:0.0
C++代码实现 摘要:解题思路:sort排序,C++代码实现注意事项:参考代码:#include<iostream>#include<algorithm>#include<string>using namespace st…… 题解列表 2023年12月13日 0 点赞 0 评论 154 浏览 评分:0.0
2880: 计算鞍点 摘要:``` #include using namespace std; const int N=1000,M=100000; int a[N][N],dx[6],dy[6]; int main(…… 题解列表 2023年12月12日 0 点赞 0 评论 154 浏览 评分:0.0
2909: 直方图 C++ 摘要:解题思路:注意事项:const int 常量(不会改变)cnt[a[i]] cnt 数量参考代码:#include<bits/stdc++.h>using namespace std…… 题解列表 2023年12月12日 0 点赞 0 评论 157 浏览 评分:0.0