上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页
摘要: 1.尼克的任务 #include <stdio.h> #include <memory.h> #include <math.h> #include <string> #include <vector> #include <set> #include <stack> #include <queue> 阅读全文
posted @ 2018-02-09 10:42 TQCAI 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 1.直线取石子 #include <stdio.h> #include <memory.h> #include <math.h> #include <string> #include <vector> #include <set> #include <stack> #include <queue> 阅读全文
posted @ 2018-02-08 14:11 TQCAI 阅读(594) 评论(0) 推荐(0) 编辑
摘要: 代码: #include <stdio.h> #include <memory.h> #include <math.h> #include <string> #include <vector> #include <set> #include <stack> #include <queue> #inc 阅读全文
posted @ 2018-02-07 22:03 TQCAI 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 实现源码:https://www.cnblogs.com/cobbliu/archive/2012/05/21/2512249.html 1.在一个递增的数组(或vector)中查找元素属于[ s , e ) 的下标 2.查找递增数组中元素是否存在 使用binary_search 注: 对于结构体, 阅读全文
posted @ 2018-02-07 20:16 TQCAI 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 1.最长公共子序列 参考博客: http://blog.csdn.net/hrn1216/article/details/51534607 http://blog.csdn.net/u013074465/article/details/45392687 代码: #include <stdio.h> 阅读全文
posted @ 2018-02-07 18:03 TQCAI 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1.P1060 开心的金明 https://www.luogu.org/problemnew/solution/P1164 #include <stdio.h> #include <memory.h> #include <math.h> #include <string> #include <vec 阅读全文
posted @ 2018-02-05 21:16 TQCAI 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 公共部分 定义了高精度数据结构“hp”,并且定义了输入(构造函数),输出(print),以及初始化(默认构造函数),隐藏了部分细节。 并且hp内部存储的数据是真实数据的逆序,但是在输入和输出的时候自动换序 高精度乘高精度 代码: 代码理解: 这是一段相当精简的代码,非常有利于程序员记忆。我昨天还在学 阅读全文
posted @ 2018-02-03 21:26 TQCAI 阅读(678) 评论(0) 推荐(0) 编辑
摘要: OJ链接:https://www.patest.cn/contests/pat-a-practise/1119 我的分析过程:pat1119分析.pdf 参考博客:https://www.cnblogs.com/xiongmao-cpp/p/6498672.html 实现代码: 完整代码: #inc 阅读全文
posted @ 2018-02-02 12:28 TQCAI 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 使用的全局变量: 根据前序、中序生成后序: 根据后序、中序生成前序: 完整代码: #include <stdio.h> #include <memory.h> #include <math.h> #include <string> #include <vector> #include <set> # 阅读全文
posted @ 2018-02-01 21:24 TQCAI 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 王道P37 T5 所谓原地逆置,就是空间复杂度为O(1)的将链表反转。 实现函数: 完整代码: #include <cstdio> #include <stdlib.h> using namespace std; typedef struct LinkList{ int data; struct L 阅读全文
posted @ 2018-01-30 23:27 TQCAI 阅读(489) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页