【密码】 (C++代码) 摘要:解题思路:注意四个中的三个我用了暴力判断加sort排序巧妙解决四个中三个的问题注意事项:参考代码:#include <bits/stdc++.h> #include <iostream> usin…… 题解列表 2019年04月28日 0 点赞 0 评论 1059 浏览 评分:0.0
蓝桥杯算法提高VIP-学霸的迷宫 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; const int maxn=500; int dx[]={1,0,0,-…… 题解列表 2019年04月28日 0 点赞 0 评论 1595 浏览 评分:8.0
蛇行矩阵 (C++代码) 摘要:解题思路:参考大神思路自己写的注意事项:参考代码:#include <iostream>#include<iomanip>#include<cstdio>#include<cmath>#include…… 题解列表 2019年04月28日 0 点赞 0 评论 610 浏览 评分:0.0
忙碌的小L (月赛题解,targin) 摘要:解题思路: 23333,4月月赛题目,这道题目是入门题是真的坑,哪有入门这么难的ε=ε=ε=(~ ̄▽ ̄)~,抢个首题解,顺手感谢小闷骚大佬的思路 这道题目直接用并查集做,方正我直接一套模板…… 题解列表 2019年04月28日 5 点赞 3 评论 915 浏览 评分:0.0
找寻小妖 (C++代码)又一个BFS模板题目 摘要:解题思路: 参考其他的BFS模板题目,此题目类似参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdio(false),cin.…… 题解列表 2019年04月28日 0 点赞 0 评论 947 浏览 评分:0.0
一起来捉妖 (C++代码) 摘要:解题思路: 水一下就过了参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdio(false),cin.tie(0),cout.tie…… 题解列表 2019年04月28日 0 点赞 0 评论 1090 浏览 评分:0.0
字符逆序 (C++代码) 摘要:解题思路: 该题主要是考虑到要算上空格的个数,才是字符串的总长度。注意事项:不能使用scanf()输入,而是要改为gets()的字符串输入格式,然后使用strlen()函数,求其字符串长度。参考代码:…… 题解列表 2019年04月27日 0 点赞 0 评论 1257 浏览 评分:0.0
A+B for Input-Output Practice (V) (C++代码) 摘要:解题思路: 此题是在上一题的基础上,改进就可以很容易解决,具体代码如下。注意事项: 主要实在循环中将while(scanf("%d",&t)==1&&t!=0)改为while(t--)…… 题解列表 2019年04月27日 0 点赞 0 评论 2010 浏览 评分:0.0
蓝桥杯算法提高VIP-排列数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int a[10]={0,1,2,3,4,5,6,7,8…… 题解列表 2019年04月26日 0 点赞 0 评论 807 浏览 评分:2.0
黑色星期五 (公式法)(C++代码) 摘要:解题思路:套用公式注意事项:weekday需要加一参考代码:#include<iostream>#include<string>using namespace std;int whatday(int …… 题解列表 2019年04月26日 1 点赞 0 评论 3385 浏览 评分:9.5