2799: 奥运奖牌计数 摘要:解题思路:首先读入n,然后用循环读入每一天的金、银、铜牌数目,并将其累加到相应的变量中。最后输出累加后的金、银、铜牌总数以及总奖牌数。参考代码:#include <iostream>using nam…… 题解列表 2023年04月10日 0 点赞 0 评论 352 浏览 评分:9.9
蓝桥杯2023年第十四届省赛真题-翻转 (纯模拟) 摘要:解题思路: 挺简单的,模拟过程注意事项: 注意if语句的判断参考代码:#include <bits/stdc++.h> using namespace std; string a,b; i…… 题解列表 2023年04月10日 0 点赞 7 评论 1775 浏览 评分:9.9
2798: 整数序列的元素最大跨度值(求最大值和最小值) 摘要:解题思路:使用自定义函数,求出最大值和最小值,然后最大值减去最小值即为解参考代码:#include <iostream>int max(int arr[],int n);int min(int arr…… 题解列表 2023年04月10日 0 点赞 0 评论 218 浏览 评分:0.0
并查集与路径压缩 摘要:利用并查集的路径压缩,快速找到最左和最右的可用节点 ```cpp #include using namespace std; #define pr pair #define ll long …… 题解列表 2023年04月10日 0 点赞 1 评论 524 浏览 评分:8.4
2797: 最高的分数--用自定义函数解决(C++) 摘要:解题思路:定义一个数组来存储学生的分数。从键盘输入学生的分数,并将其存储在数组中。定义一个自定义函数,用于计算数组中的最大值。调用自定义函数来计算数组中的最大值,并将其输出。注意事项:该代码假设输入的…… 题解列表 2023年04月10日 0 点赞 0 评论 325 浏览 评分:0.0
使用stl的双向链表+数组 摘要:```cpp #include using namespace std; #define pr pair #define ll long long const int N = 5e5 + 5…… 题解列表 2023年04月10日 0 点赞 0 评论 689 浏览 评分:8.7
奶奶个蛋,比赛的时候写的一样,但是肯定不对 摘要:#include using namespace std; #define int long long int n; const int N=1e5+1; struct fly { i…… 题解列表 2023年04月10日 1 点赞 1 评论 1279 浏览 评分:2.6
map存储使用 摘要:解题思路:从前往后,提取每一个数的因子存入map中,时间复杂度O(n*sqrt(Ai)),每一次存储之前判断map里面是否为空,不为空表示前面有至少一个数可以与它组队,那么我们map里面存储的就是第一…… 题解列表 2023年04月10日 0 点赞 1 评论 958 浏览 评分:6.0
弟弟的作业 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Dome04 { public static void main(Stri…… 题解列表 2023年04月10日 0 点赞 0 评论 401 浏览 评分:9.9
题目 1635: 蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:看了很多人的代码,发现用函数和指针来解决问题的不多,写了一下代码,抛砖引玉吧#include <iostream>using namespace std;double arrayAvg(in…… 题解列表 2023年04月10日 0 点赞 0 评论 192 浏览 评分:0.0