[编程基础]输入输出练习之格式控制 (C++代码) 摘要:解题思路:主要是注意控制流的先后顺序注意事项:参考代码:#include <iostream> #include <iomanip> using namespace std; int q,w,e…… 题解列表 2019年02月06日 1 点赞 0 评论 1285 浏览 评分:2.0
优质题解 K-进制数 (C++代码)[排列组合解法] 摘要:解题思路:分析题目后可知:这个是一个无序插空的问题.于是分组,将0和其他进制数分为两组,之后对于每个非零位的数字均有K - 1个,对于数字0.此处假设,是一个N位的一个数字,并且,根据数字分布情况可知…… 题解列表 2019年02月11日 4 点赞 0 评论 1503 浏览 评分:2.0
蓝桥杯2015年第六届真题-穿越雷区 (C++代码) 摘要:解题思路: 最普通的一道搜索题目,dfs跟bfs都能做,需要注意的是每一行的两个数据中间有空格。注意事项:参考代码:#include <iostream>#include <algo…… 题解列表 2019年02月09日 0 点赞 0 评论 1029 浏览 评分:2.0
简单的事情,简单明了 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double M,K,S=1; int i,j; while(…… 题解列表 2019年02月10日 0 点赞 0 评论 799 浏览 评分:2.0
三位数反转 (C语言代码) 摘要:解题思路:注意事项:输出数必须分离,否则错。参考代码:#include<stdio.h>int main(){ int x,i,a,b,c; while((i = scanf("%d",&x))!= …… 题解列表 2019年02月13日 0 点赞 0 评论 1252 浏览 评分:2.0
采药 (C语言代码) 摘要:解题思路:动态规划,和分苹果一样的,这里的草药先用苹果代替了,偷下懒。注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { …… 题解列表 2019年02月16日 1 点赞 0 评论 1007 浏览 评分:2.0
三位数分解 (C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int x; int a, b, c; scanf("%d", &x); a =…… 题解列表 2019年02月16日 0 点赞 1 评论 1293 浏览 评分:2.0
蓝桥杯2017年第八届真题-合根植物 (C++代码) 摘要:解题思路:并查集题,首先了解并查集,统计集合数用一个bool型数组isRoot[maxn]记录每个结点是否作为某个数的根节点,当处理完数据之后就可以遍历所有元素,令他所在集合的根结点 为true,最后…… 题解列表 2019年02月17日 0 点赞 0 评论 1344 浏览 评分:2.0
蓝桥杯算法训练VIP-简单加法(基本型) (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; if(n<=3) co…… 题解列表 2019年02月17日 0 点赞 0 评论 907 浏览 评分:2.0
蓝桥杯算法提高VIP-幸运顾客 (C++代码) 摘要: Splay 全局 Kth参考代码:#include <bits/stdc++.h> constexpr auto Inf = 0x3F3F3F3F; typedef long lo…… 题解列表 2019年02月20日 0 点赞 0 评论 1611 浏览 评分:2.0