蓝桥杯2013年第四届真题-错误票据 摘要:``` #include using namespace std; const int N = 100010; int n; vector a; int cnt[N]; int ma…… 题解列表 2021年08月08日 0 点赞 0 评论 316 浏览 评分:0.0
活动选择--和书上写法不同 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; struct pp{ int m; int n; }P…… 题解列表 2021年08月08日 0 点赞 1 评论 723 浏览 评分:9.9
信息学奥赛一本通T1322-拦截导弹问题-题解(C/C++语言代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring>#include<cmath>#define MAXN 1000using namespace s…… 题解列表 2021年08月07日 0 点赞 0 评论 587 浏览 评分:6.7
优质题解 记T1013 “Sn的公式求和”的两种解法思想 摘要:解题思路:方法A:模拟人工列竖式计算 观察所给信息Sn=a+aa+aaa+…+aa…aaa 想到我们日常列竖式计算的思想方法:个位加起来,满10进一,其余位数如法炮制 对于还有些疑惑…… 题解列表 2021年08月07日 0 点赞 2 评论 3318 浏览 评分:9.5
自定义函数之整数处理 C++题解 摘要:解题思路输入数组每个元素后,找出最大值和最小值的下标,交换第一位和最小值,最后一位和最大值C++中min_element(a+n,a+m)和max_element(a+n,a+m)可以找出数组中最小值…… 题解列表 2021年08月02日 0 点赞 0 评论 604 浏览 评分:8.0
蓝桥杯2013年第四届真题-危险系数 dfs遍历邻接表 摘要:``` #include using namespace std; const int N = 1100, M = 2 * N; int n,m; int cnt[N]; vector …… 题解列表 2021年08月02日 0 点赞 0 评论 788 浏览 评分:9.9
数据结构-静态链表(C++) 摘要:#include <iostream> #include <string> #include <iomanip> #define MAXSIZE 11 using namespace …… 题解列表 2021年08月02日 0 点赞 0 评论 409 浏览 评分:0.0
蓝桥杯2013年第四届真题-买不到的数目 摘要:``` #include using namespace std; int a,b; set s; vector c; int main() { cin>>a>>b; fo…… 题解列表 2021年08月01日 0 点赞 0 评论 396 浏览 评分:0.0
蓝桥杯历届试题-九宫重排 c++ 摘要:``` #include using namespace std; int fx[4][2] = { {0,-1},{-1,0},{0,1},{1,0} }; string start; …… 题解列表 2021年08月01日 0 点赞 0 评论 653 浏览 评分:0.0
c++,cin.get()解法 摘要:解题思路:cin.get()读到行的最后一个,但是不读入回车,因此,通过读到null终止循环。注意事项:参考代码:#include<iostream>#include<string>using nam…… 题解列表 2021年07月31日 0 点赞 0 评论 770 浏览 评分:0.0