线段覆盖 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int maxn = 10000…… 题解列表 2019年03月17日 0 点赞 0 评论 949 浏览 评分:5.6
杨辉三角 (C++代码) 摘要:解题思路:水啊(注意换行)参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdio(false),cin.tie(0),cout.ti…… 题解列表 2019年03月17日 0 点赞 0 评论 1049 浏览 评分:0.0
数数字 (C++代码)很速度 摘要:解题思路: 过后再更新,反正原理大概就是区间两端求余再取值看情况就可以了。参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdi…… 题解列表 2019年03月17日 2 点赞 3 评论 450 浏览 评分:8.0
线段覆盖 (C++代码) 摘要:解题思路:这我也是服了,本来准备写一些什么线段树啊区间维护啊之类的东西,后来想了想决定先暴力看看数据错误情况先,结果暴力直接过了。参考代码:#include<bits/stdc++.h> #defi…… 题解列表 2019年03月17日 0 点赞 0 评论 763 浏览 评分:8.0
线段覆盖 (C++代码) 摘要:解题思路:模拟法注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int arr[100000]; int main() { …… 题解列表 2019年03月16日 1 点赞 0 评论 1750 浏览 评分:6.7
矩阵嵌套 (C++代码) 摘要:码一下代码:#include <iostream> using namespace std; int main() { int N, n, a, b; int i, j…… 题解列表 2019年03月16日 0 点赞 0 评论 688 浏览 评分:9.9
蓝桥杯2014年第五届真题-分糖果 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> const int N = 100; using namespace std; int main() { int n…… 题解列表 2019年03月16日 0 点赞 0 评论 330 浏览 评分:0.0
蓝桥杯历届试题-九宫重排 (C++代码) 摘要:#include<cstdio> #include<cstring> #include<set> using namespace std; typedef int State[9]; c…… 题解列表 2019年03月16日 12 点赞 6 评论 2904 浏览 评分:8.0
母牛的故事 (C++代码)简洁 清晰 摘要:解题思路:设f(n)表示第n年母牛的数量,显然f(0)=0,f(1)=1,f(2)=2,f(3)=3,f(4)=4,f(5)=6=f(4)+f(2),即当n>4时,f(n)=f(n-1)+f(n-3)…… 题解列表 2019年03月16日 0 点赞 0 评论 521 浏览 评分:0.0
汽水瓶 (C++代码) 摘要:参考代码:#include<iostream> using namespace std; int get(int x) { if(x<=1) return 0; if(x==…… 题解列表 2019年03月16日 0 点赞 0 评论 557 浏览 评分:0.0