蓝桥杯算法提高VIP-分苹果 (C++代码)(树状数组 + 差分思想) 摘要:解题思路:参考代码:#include<bits/stdc++.h> using namespace std; const int SIZE = 100211; int BIT[SIZE]; …… 题解列表 2018年08月04日 0 点赞 0 评论 698 浏览 评分:0.0
DNA (C++代码)简单容易理解 可AC 摘要:解题思路:按照题目的意思一步一步展开,主要分成三层,上层、中间的X以及下边部分注意事项:需要注意的是循环次数为两个以上的时候上边的图案是从第二层开始的参考代码:#include <iostream> …… 题解列表 2018年08月04日 3 点赞 0 评论 863 浏览 评分:0.0
逆序数 (C++代码)(树状数组 O(nlogn) ) 摘要:解题思路: 离散化 + 树状数组参考代码:#include<bits/stdc++.h> using namespace std; const int SIZE = 1024; …… 题解列表 2018年08月04日 0 点赞 0 评论 913 浏览 评分:0.0
鸡兔同笼 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#include<iostream>using namespace std;int main() { i…… 题解列表 2018年08月03日 0 点赞 0 评论 949 浏览 评分:0.0
装包装箱问题 (C++代码) 摘要:解题思路:注意事项:参考代码:用到数学函数ceil求较大整值#include<stdio.h>#include<math.h>#include<iostream>using namespace std…… 题解列表 2018年08月03日 1 点赞 0 评论 799 浏览 评分:0.0
王牌花色 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<iostream>using namespace std;int n, t, m,…… 题解列表 2018年08月03日 0 点赞 0 评论 1199 浏览 评分:0.0
三位数反转 (C++代码) 摘要:解题思路:注意事项:参考代码:简单点#include<iostream>using namespace std;int main(){ int n; while (cin >> n) cout <<…… 题解列表 2018年08月03日 0 点赞 0 评论 646 浏览 评分:0.0
换硬币 (C++代码) 摘要:解题思路:注意事项:参考代码:简单点#include<iostream>using namespace std;int main(){ int n, a[10] = { 1,2,3,5,8,13,21…… 题解列表 2018年08月03日 0 点赞 0 评论 1007 浏览 评分:0.0
数日子 (C++代码) 摘要:解题思路:注意事项:参考代码:这样就能通过,233333#include<iostream>using namespace std;int main(){ cout << 200 << endl; r…… 题解列表 2018年08月03日 0 点赞 0 评论 725 浏览 评分:2.0
蓝桥杯2014年第五届真题-重复模式 (C++代码) 摘要:解题思路:参考代码:#include<bits/stdc++.h> using namespace std; int main() { string str; cin >> str; …… 题解列表 2018年08月03日 0 点赞 0 评论 1521 浏览 评分:9.9