蓝桥杯历届试题-幸运数 (C++代码) 摘要:解题思路:我写的时间复杂度感觉挺高的,但是竟然没有超时,不知道他的时间复杂度是不是很低。#define maxn 500010 #include<stdio.h> int a[maxn],b[ma…… 题解列表 2018年04月06日 0 点赞 0 评论 1536 浏览 评分:0.0
蓝桥杯历届试题-带分数 (C++代码) 摘要:#include<cstdio> #include<iostream> using namespace std; int vis[10]; int a[10],ans,n; long lon…… 题解列表 2018年04月06日 0 点赞 0 评论 1858 浏览 评分:0.0
蓝桥杯历届试题-小朋友排队 (C++代码) 摘要:#include<cstdio> #define maxn 100010 struct data { int num,cnt; }A[maxn],temp[maxn]; int n; …… 题解列表 2018年04月06日 0 点赞 0 评论 3209 浏览 评分:7.5
c++判断素数 摘要:#include<iostream>#include<iomanip>using namespace std;class acm { public: void sushu(int a,int b) {…… 题解列表 2018年04月03日 2 点赞 0 评论 2276 浏览 评分:2.0
蓝桥杯算法提高VIP-交换Easy (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int M=1005; int a[M]={0}; int main(…… 题解列表 2018年04月01日 0 点赞 0 评论 1159 浏览 评分:0.0
蓝桥杯算法提高VIP-一元一次方程 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { double a,b; while(cin>>a>…… 题解列表 2018年04月01日 0 点赞 0 评论 1107 浏览 评分:0.0
筛排处理 (C++代码) 摘要:解题思路:可以用set来写 set自带去重和排序功能注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int main() { …… 题解列表 2018年04月01日 0 点赞 0 评论 1845 浏览 评分:0.0
妹子杀手的故事 (C++描述,vector) 摘要:解题思路:while循环输入喽,保存。注意事项:没说多少组,你可以放到大点的数组。vector还是比较好的。参考代码:#include<iostream>#include<string>#includ…… 题解列表 2018年03月31日 0 点赞 0 评论 1502 浏览 评分:0.0
IP判断 (C++代码) 摘要:解题思路:读入一行,按“.”分开,接下来如果是字母,输出N;如果是数字,进行判断。注意事项:string流的应用,string与int的转换,统计思想。参考代码:#include<iostream>#…… 题解列表 2018年03月31日 0 点赞 0 评论 1022 浏览 评分:0.0
蓝桥杯历届试题-翻硬币 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<cstring> using namespace std; const …… 题解列表 2018年03月31日 0 点赞 0 评论 1940 浏览 评分:0.0