- 博客(12)
- 收藏
- 关注
原创 Linux/Ubuntu How to play with Vim(持续更新)
先介绍一下Vim是什么神器Vim是一个文本编辑器和现在流行的sublime text 3、VsCode一样的道理,Vim因为其代码补完、编译及错误跳转等方便编程的功能特别丰富,在程序员中被广泛使用。那么这篇文章到底要介绍什么1. 如何在Linux环境下安装Vim2. 在Linux环境下配置Vim3. 在Linux环境下配置GCC环境4. 使用Vim来写C++程序并且编译运行5. 把Vim打造成轻量级
2017-02-13 20:53:38
464
原创 RobotC 3.X安装和使用教程
Step 0先把之前安装的4.X版本和3.X版本都卸载干净Step 1下载好所需要的文件点我 提取码 jxdc Step 2双击运行 ROBOTCforMINDSTORMS_362.exe这里请不要修改默认路径一直点next,出现黑窗口千万不要手动去关闭它。 这里出现警告是因为我原本软件已经进行了破解,然后卸载软件后破解仍然存在才会提示警告。 接
2016-12-15 20:16:19
2508
原创 UVA 10082 WERTYU
UVA 10082 WERTYUUVA 10082#include<cstdio> #include<iostream> #include<cstring> using namespace std;char str[]={"`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./"}; char c;int main() { while((c = ge
2016-11-01 08:47:05
354
原创 UVA272 TEX Quotes
UVA 272 #include #include #include using namespace std; char str; int main() { bool f = true; while((str = getchar())!=EOF) { if(str == '"') { p
2016-10-29 13:41:51
347
原创 数据结构 堆
本代码参考《算法导论》 堆结构是一种特殊的二叉树结构,可以近似看作于完全二叉树,我们一般讨论的堆结构是二叉堆结构,其形式一般是:最大堆,最小堆。最大堆每次从堆顶取出最大值然后进行维护使得下一次取出的值也是最大值,最小堆同理。 左为最大堆 右为最小堆 实现代码如下 #include #include #include #define len 1010 using na
2016-10-24 08:24:56
449
原创 数据结构 链式存储结构
单链表 单链循环表 #include #include using namespace std; typedef struct link { int data; link *next; }link; link *Link = new link; void back_create(link **p,int n) { link *t; t = *p; f
2016-10-22 14:17:57
444
原创 数据结构 线性表
#include #include #define len 1010 using namespace std; typedef struct seqlist { int data[len]; int length; }seqlist; int x; seqlist *insert(seqlist *p,int pos) { for(int i = p->length-
2016-10-19 20:44:19
275
原创 POJ1088 滑雪(DP)
Description Michael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 1 2 3 4 5 16 17 18 19 6 15 24 25 20 7 14 2
2016-07-26 21:13:15
295
原创 POJ1458Common Subsequence(LCS)
Description A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequence Z = is a subsequence of X if there exists a
2016-07-24 19:18:21
277
原创 POJ2533:Longest Ordered Subsequence(LIS)
Description A numeric sequence of ai is ordered ifa1 a2 aN. Let the subsequence of the given numeric sequence (a1,a2, ..., aN) be any sequence (ai1,ai2, ..., aiK), where 1 i1 i2 iK N. For example
2016-07-24 14:29:10
301
原创 POJ 1163:The Triangle(递推)
Description 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 (Figure 1) Figure 1 shows a number triangle. Write a program that calculates the highest sum of numbers passed on a route that st
2016-07-24 12:28:29
570
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅