会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
任小喵
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2018年7月10日
递归实现排列
摘要: 问题 H: 递归/非递归实现组合型枚举时间限制: 1 Sec 内存限制: 128 MB提交: 43 解决: 21[提交] [状态] [讨论版] [命题人:admin]题目描述从 1~n 这 n 个整数中随机选出 m 个,输出所有可能的选择方案。n>0, 0usi...
阅读全文
posted @ 2018-07-10 21:51 任小喵
阅读(185)
评论(0)
推荐(0)
2018年6月13日
### 思维
摘要: 6539: ###时间限制: 1 Sec 内存限制: 128 MB提交: 50 解决: 19[提交][状态][讨论版][命题人:admin]题目描述On a two-dimensional plane, there are m lines drawn parall...
阅读全文
posted @ 2018-06-13 11:46 任小喵
阅读(174)
评论(0)
推荐(0)
2018年6月4日
Dijkstra算法(记录路径)
摘要: 与求最短路相比,增加一个path数组,来记录最短路的路径先将path[i]=-1,之后每次找出最短路的点p后将path[j]=p用path[j]=i表示从i到j最短路的路径for(int j=1; j13-->4-->14-->15-->3-->4-->1代码:#in...
阅读全文
posted @ 2018-06-04 20:38 任小喵
阅读(2648)
评论(0)
推荐(0)
2018年5月31日
Factors of Factorial
摘要: 问题 G: Factors of Factorial时间限制: 1 Sec 内存限制: 128 MB提交: 45 解决: 25[提交][状态][讨论版][命题人:admin]题目描述You are given an integer N. Find the numb...
阅读全文
posted @ 2018-05-31 21:25 任小喵
阅读(216)
评论(0)
推荐(0)
2018年5月28日
Dijkstra算法
摘要: 一.最短路径的最优子结构性质 该性质描述为:如果P(i,j)={Vi....Vk..Vs...Vj}是从顶点i到j的最短路径,k和s是这条路径上的一个中间顶点,那么P(k,s)必定是从k到s的最短路径。即如果存在一条从i到j的最短路径(Vi.....Vk,Vj),...
阅读全文
posted @ 2018-05-28 22:31 任小喵
阅读(133)
评论(0)
推荐(0)
2018年5月25日
AtCoDeer and Election Report 二分
摘要: 6473: AtCoDeer and Election Report时间限制: 1 Sec 内存限制: 128 MB提交: 316 解决: 82[提交][状态][讨论版][命题人:admin]题目描述AtCoDeer the deer is seeing a qu...
阅读全文
posted @ 2018-05-25 23:47 任小喵
阅读(121)
评论(0)
推荐(0)
2018年5月23日
XK Segments 二分
摘要: 5327: XK Segments时间限制: 1 Sec 内存限制: 256 MB提交: 105 解决: 28[提交][状态][讨论版][命题人:admin]题目描述While Vasya finished eating his piece of pizza, t...
阅读全文
posted @ 2018-05-23 23:41 任小喵
阅读(180)
评论(0)
推荐(0)
2018年5月21日
Tak and Cards dp
摘要: 6461: Tak and Cards时间限制: 1 Sec 内存限制: 128 MB提交: 142 解决: 51[提交][状态][讨论版][命题人:admin]题目描述Tak has N cards. On the i-th (1≤i≤N) card is wr...
阅读全文
posted @ 2018-05-21 12:01 任小喵
阅读(210)
评论(0)
推荐(0)
2018年5月20日
容斥(第一题)
摘要: 6451: Iroha and a Grid时间限制: 1 Sec 内存限制: 128 MB提交: 218 解决: 62[提交][状态][讨论版][命题人:admin]题目描述We have a large square grid with H rows and ...
阅读全文
posted @ 2018-05-20 22:45 任小喵
阅读(183)
评论(0)
推荐(0)
手写堆栈 队列 c++
摘要: 一.堆栈1.数组实现#include using namespace std;const int maxx=1e5;template class stack{public: T stk[maxx]; int top; stack(){ ...
阅读全文
posted @ 2018-05-20 19:52 任小喵
阅读(781)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告