2328: 信息学奥赛一本通T1176-谁考了第k名(C++代码)自定义sort规则排序 摘要:解题思路:用学生数组记录数据自定义比较函数,利用 sort 函数排序输出对应的下标[k - 1]的成员学号与成绩即可注意事项:题目要求 %g 输出分数,用 scanf 函数输出比较方便但如果学号是st…… 题解列表 2021年03月12日 3 点赞 0 评论 1811 浏览 评分:7.9
蓝桥杯2019年第十届真题-旋转题解C++ 摘要:# 二维数组 ```cpp #include using namespace std; int main(){ int n,m; cin>>n>>m; int pic[n][m];…… 题解列表 2021年03月12日 0 点赞 0 评论 364 浏览 评分:8.0
Sn的公式求和 摘要:解题思路:设a(n)为数列第n项,则a(n+1)=a(n)+2,a(1)=2。注意事项:参考代码:#include<iostream>#include<string>using namespace s…… 题解列表 2021年03月12日 0 点赞 0 评论 347 浏览 评分:0.0
C++三个字符串的排序 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>#include <cstring>#include <cmath>#include <cs…… 题解列表 2021年03月11日 0 点赞 0 评论 373 浏览 评分:0.0
水仙花数判断 摘要:解题思路:输出所有水仙花数注意事项:无参考代码:#include <bits/stdc++.h>using namespace std;int a[1001];int main (){ cout<<1…… 题解列表 2021年03月11日 0 点赞 6 评论 529 浏览 评分:6.0
水仙花数的判断 摘要:解题思路:注意事项:调用pow()函数,要引用#include<math.h>的库文件参考代码:#include<iostream>using namespace std;#include<math.…… 题解列表 2021年03月11日 0 点赞 0 评论 624 浏览 评分:0.0
1579: 蓝桥杯算法提高VIP-陶陶摘苹果2 摘要:解题思路: 一:构造一个存放 n 个元素的动态数组存放数据 二:遍历整个数组 只要找出 *(p+i) > m+30 的数 ,count++ 即可注意事项: 注意板凳的高…… 题解列表 2021年03月10日 0 点赞 0 评论 544 浏览 评分:9.9
优质题解 蓝桥杯算法训练VIP-猴子分苹果-题解(C++代码)技巧解法 摘要:【OJ刷题之路】【C语言网 # 博客链接 **题中有LaTex数学公式,这里不支持,建议到原博查看** [链接](https://blog.csdn.net/weixin_4562557…… 题解列表 2021年03月10日 0 点赞 0 评论 1005 浏览 评分:9.9
2309: 蓝桥杯2019年第十届真题-人物相关性分析 摘要:解题思路:主要思想是滑动窗口用两个数组记录Alice和Bob出现时(首字母)的下标遍历Alice数组中的元素,在Bob数组中维护范围内的窗口范围为:Alice[i] - k - 3 <= Bob[ ]…… 题解列表 2021年03月10日 0 点赞 3 评论 1430 浏览 评分:9.4
蓝桥杯2017年第八届真题-正则问题 摘要: #include #include #include using namespace std; string str; int cnt=0,res,m; int a[11…… 题解列表 2021年03月10日 0 点赞 0 评论 485 浏览 评分:0.0