摘要: 题目:DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater loca... 阅读全文
posted @ 2015-05-13 00:46 Kinthon 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 程序题目:编写一个程序。 先从键盘输入一个字符串(有英文字母,可能也有数字),然后显示其中数字符的个数、英文字母的个数和字符串的长度;字符串中不能有空格,若有将其删除,并将改变后的字符串按相反的顺序显示出来;输入第二个字符串,显示的时全都以‘*’显示,然后将输入的字符串与前面处理后的字符串比较是否相... 阅读全文
posted @ 2015-05-12 14:14 Kinthon 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 1)截图工具,用内置的就可以了,命令行发动gnome-screenshot 相关命令:gnome-screenshot -h (help) gnome-screenshot -w (window)(抓取窗口,不是整个屏幕) gnome-screenshot -a (抓取区域) gnome-scree 阅读全文
posted @ 2015-05-11 15:44 Kinthon 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 题目:DescriptionLittle Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capita... 阅读全文
posted @ 2015-05-11 15:36 Kinthon 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 题目:DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. Fro... 阅读全文
posted @ 2015-05-11 15:02 Kinthon 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 题目:Description73 88 1 02 7 4 44 5 2 6 5(Figure 1)Figure 1 shows a number triangle. Write a program that calculates the highest sum... 阅读全文
posted @ 2015-05-09 11:21 Kinthon 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 题目:DescriptionMichael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 1... 阅读全文
posted @ 2015-05-09 10:24 Kinthon 阅读(171) 评论(0) 推荐(0) 编辑
摘要: "=======================Basic___Configuration_Start===================="修改默认目录"": cd D:\dream\programmingset ts=4 "tab键的长度syntax o... 阅读全文
posted @ 2015-05-09 09:54 Kinthon 阅读(329) 评论(0) 推荐(0) 编辑
摘要: vim做为一款可以自己定制的编辑器,确实是很强大,在这里我说下自己在编程时,使用vim和makefile的一些技巧,只是个人的编程习惯;当完成对源代码的编辑后,想对其进行编译链接等工作,可以直接用g++、gcc等编译器,加上相关的参数便可以完成,但这并不能充分利用vim本身带来的优势。在这里我们结合... 阅读全文
posted @ 2015-05-09 09:45 Kinthon 阅读(1412) 评论(0) 推荐(0) 编辑
摘要: 并查集是一种树型数据结构,主要用于处理不相交集合之间的合并和判断某一元素所在的集合(并查集中集体是用其最高父结点表示),这种数据结构维护一个数组,father[],用于记录每个元素的父亲,也就其所在的集合;其主要的操作有两种,查找和合并,查找是为了判断出指定元素所有的集合(树),对于查找算法可以用路... 阅读全文
posted @ 2015-05-02 20:28 Kinthon 阅读(217) 评论(0) 推荐(0) 编辑