2018年5月13日
摘要: 上面是原始的PLA实现,下面是PLA基于口袋算法的优化: 阅读全文
posted @ 2018-05-13 22:46 任我主宰 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 参考博客:https://blog.csdn.net/tianhaobing/article/details/65443049 阅读全文
posted @ 2018-05-13 22:04 任我主宰 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 参考链接写的:http://www.cnblogs.com/eniac12/p/5329396.html 1 #include<iostream> 2 3 using namespace std; 4 5 void swap(int A[], int i, int j){ 6 7 int temp 阅读全文
posted @ 2018-05-13 22:02 任我主宰 阅读(145) 评论(0) 推荐(0) 编辑
  2018年1月29日
摘要: Tick and Tick Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 20859 Accepted Submission(s): 5470 阅读全文
posted @ 2018-01-29 11:35 任我主宰 阅读(143) 评论(0) 推荐(0) 编辑
  2018年1月22日
摘要: Problem Description In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission o 阅读全文
posted @ 2018-01-22 18:54 任我主宰 阅读(138) 评论(0) 推荐(0) 编辑
  2017年11月17日
摘要: n块钱,2块钱一瓶啤酒,2个瓶子换一瓶,4个盖子换一瓶,能喝多少瓶 方法是递归一波,边界条件是不够钱,不够盖子,不够瓶子 阅读全文
posted @ 2017-11-17 12:02 任我主宰 阅读(326) 评论(0) 推荐(0) 编辑
  2017年11月14日
摘要: 二维向量的输入问题: 不像二维数组那样,可以直接对arr[i][j]进行循环赋值。在vector<vector<int>>中,因为vector是一个容器,最外层的vector容器中放着更小的vector,而里层的vector里面放的是int型的数字。所以我们首先要对里层的vector容器赋值,然后再 阅读全文
posted @ 2017-11-14 00:55 任我主宰 阅读(958) 评论(0) 推荐(0) 编辑
  2017年4月24日
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 int queen[10] = {0}; 6 bool place(int k){ 7 for(int i=0;i=n) 17 count1++; 18 else{ 19 for(int i=0;i>n){ 30 count1=0... 阅读全文
posted @ 2017-04-24 00:58 任我主宰 阅读(190) 评论(0) 推荐(0) 编辑
  2016年12月30日
摘要: 1306. Sorting Algorithm Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description One of the fundamental problems of computer science is orderin 阅读全文
posted @ 2016-12-30 23:18 任我主宰 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1813. M进制数问题 Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description 试用 C++的类来表示一般进制数。 给定 2 个n位m进制整数A和B,计算m进制数整数P = A / B (向下取整)与 Q = A % B的值。 阅读全文
posted @ 2016-12-30 22:29 任我主宰 阅读(281) 评论(0) 推荐(0) 编辑