蓝桥杯历届试题-连号区间数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int M=50000+2; int a[M]={0}; int ch…… 题解列表 2018年05月07日 0 点赞 0 评论 628 浏览 评分:0.0
蓝桥杯算法提高VIP-特殊的质数肋骨 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> #include<algorithm> using namespace std; const…… 题解列表 2018年05月06日 0 点赞 0 评论 939 浏览 评分:9.9
奖学金 (C++代码) 摘要:解题思路:可以定义一个结构体存储各个分数 然后是对一个结构体组的简单排序问题注意事项:添加函数 增加代码简洁与可读性.参考代码:#include<iostream>using namespace s…… 题解列表 2018年05月05日 1 点赞 0 评论 1025 浏览 评分:8.0
数列 (C++代码) 摘要:解题思路:第2的m次方项为k的m次方(m=0 1 2...) 其余项为s[n+j]=s[n]+s[j] (1 <= j <= n-1)注意事项:参考代码:#include<iostream>usi…… 题解列表 2018年05月04日 1 点赞 0 评论 1298 浏览 评分:0.0
蓝桥杯2013年第四届真题-危险系数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> using namespace std; const int M=1000+5; int…… 题解列表 2018年05月03日 1 点赞 0 评论 817 浏览 评分:0.0
Dinner (C++代码) 摘要:#include <bits/stdc++.h> using namespace std; string s[4] = { "bowl", "knife", "fork" ,"chopsticks…… 题解列表 2018年05月03日 0 点赞 0 评论 1069 浏览 评分:0.0
采药 (C++代码) 摘要:解题思路:01背包问题 本质是建一个 药的序号和时间 的二维数组 写入每一个元素时都分为采与不采这个药 这两种情况得到总价值的最优解就是本元素的值 由于写入一个元素是需要用到前面的元素,故次数组…… 题解列表 2018年05月03日 56 点赞 1 评论 1155 浏览 评分:6.9
Jam的计数法 (C++代码) 摘要:解题思路:先找到jam数的规律: 如果长度为三,只用abcde五个字母,并用12345代替,则所有数为123 124 125 134 135 145 234 235 245 345 即 abc abd…… 题解列表 2018年05月03日 3 点赞 0 评论 1254 浏览 评分:6.0
Tom数 (C++代码) 摘要:解题思路:输入数据用string保存,然后依次相加注意事项:考虑数据过大,用字符串保存参考代码:#include<iostream>#include<string>using namespace st…… 题解列表 2018年05月01日 0 点赞 0 评论 654 浏览 评分:6.0
校门外的树 (C++代码) 摘要:解题思路:咳咳,其实这就是道找规律题,手工计算前6天得到1 2 3 4 6 9 可以发现每一天的母牛数等于大前天加昨天的母牛数用代码表示就是 cow[i] = cow[i - 3] + cow [i …… 题解列表 2018年04月30日 0 点赞 0 评论 490 浏览 评分:0.0