蓝桥杯算法提高VIP-线段和点 (C++代码) 摘要:解题思路: 以左区间递增排序,如果相等则以右区间递减排序。每次找出一个能推的更远的点。花费的次数则是我们需要的最少点数。注意事项:参考代码:#include <bits/stdc…… 题解列表 2019年03月10日 0 点赞 0 评论 1049 浏览 评分:8.8
蓝桥杯历届试题-回文数字 (C++代码) 摘要:直接暴力列举参考代码:#include<iostream>using namespace std;int main(){ int n; int flag=0; cin>>n; …… 题解列表 2019年03月10日 0 点赞 0 评论 831 浏览 评分:0.0
蓝桥杯算法提高VIP-矩阵乘方 (C语言代码) 摘要:解题思路: 递归注意事项:参考代码:#include<iostream> using namespace std; int a[2][2]; int b, m; int sum; void…… 题解列表 2019年03月10日 0 点赞 0 评论 1826 浏览 评分:9.9
蓝桥杯算法提高VIP-盾神与砝码称重 (C++代码)dfs 摘要:解题思路:dfs三种情况就行了 放物体一边 不放 放物体对面注意事项:参考代码:#include<iostream> #include<algorithm> using namespace st…… 题解列表 2019年03月10日 1 点赞 0 评论 1015 浏览 评分:0.0
蓝桥杯算法提高VIP-班级排名 (C++代码) 摘要:解题思路:以map的value排序,如果成绩相同把DaDa放前面去,再找出DaDa在Map当中的位置+1即可。注意事项:参考代码:#include <bits/stdc++.h> using nam…… 题解列表 2019年03月09日 1 点赞 0 评论 1069 浏览 评分:0.0
蓝桥杯算法提高VIP-特殊的质数肋骨 (C++代码) 摘要:解题思路:构造长度为n的数,当不满足条件时,就没有必要再构造了。注意事项:1要特殊处理参考代码:#include <bits/stdc++.h> using namespace std; map<…… 题解列表 2019年03月09日 0 点赞 0 评论 1011 浏览 评分:0.0
蓝桥杯2013年第四届真题-错误票据 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int data[10000];void i2s(string &temp,int …… 题解列表 2019年03月09日 0 点赞 0 评论 765 浏览 评分:0.0
蓝桥杯历届试题-翻硬币 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string str1,str2; getlin…… 题解列表 2019年03月09日 1 点赞 0 评论 704 浏览 评分:0.0
蓝桥杯算法提高VIP-单词个数统计 (C++代码) 摘要:解题思路:利用stringstream流来解决注意事项:本题题目中的”单词之间相隔一个空格“有错误,正确是单词之间可以相隔任意个空格参考代码:#include <iostream>#include<s…… 题解列表 2019年03月09日 0 点赞 2 评论 517 浏览 评分:0.0
字符串的输入输出处理 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> using namespace std; const int maxn = 1e6+10;…… 题解列表 2019年03月08日 0 点赞 0 评论 790 浏览 评分:0.0