摘要: Problem DescriptionFat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each grid o... 阅读全文
posted @ 2015-08-17 10:17 ChiLuManXi 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 今天写聊天室的时候,在读不定大小的文件的时候,想到了使用feof这个函数,但是在写测试程序的时候出了点问题,于是让我产生了对研究一下这个函数的强烈兴趣。那么就来简单的谈一下:首先man一下feof给出:The function feof() tests the end-of-file indicat... 阅读全文
posted @ 2015-08-08 01:14 ChiLuManXi 阅读(986) 评论(0) 推荐(0) 编辑
摘要: 进程与线程之间的关系与区别线程是计算机中独立运行的最小单位,运行时占用很少的系统资源。由于每个线程占用的CPU时间是由系统分配的。因此可以把线程看成系统分配CPU时间的基本单位。在用户看来,多个线程是同时执行的,但从操作系统调度上看,对于单核CPU的话,各个线程是交替执行的。系统不停地在各个线程之间... 阅读全文
posted @ 2015-08-03 10:35 ChiLuManXi 阅读(214) 评论(0) 推荐(0) 编辑
摘要: PotsTime Limit:1000MSMemory Limit:65536KTotal Submissions:11779Accepted:4985Special JudgeDescriptionYou are given two pots, having the volume ofAandBl... 阅读全文
posted @ 2015-08-01 22:07 ChiLuManXi 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 树形数据结构是非常重要的非线性数据结构.这里我们将要重点来谈一谈的是二叉树.树的概念:树是N个结点的有限集.在任意一棵非空的树:有且仅有一个特定的称为根的结点,当结点数大于1时,其余结点可分为m个互不相交的有限集,其中每个结点可以向下组成一棵新的树,叫做子树.树的度:一棵树中,每个结点的度的最大值为... 阅读全文
posted @ 2015-07-31 10:18 ChiLuManXi 阅读(293) 评论(0) 推荐(0) 编辑
摘要: Shuffle'm UpTime Limit:1000MSMemory Limit:65536KTotal Submissions:7429Accepted:3433DescriptionA common pastime for poker players at a poker table is t... 阅读全文
posted @ 2015-07-29 23:29 ChiLuManXi 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Language:SquareTime Limit:3000MSMemory Limit:65536KTotal Submissions:21805Accepted:7616DescriptionGiven a set of sticks of various lengths, is it poss... 阅读全文
posted @ 2015-07-29 20:38 ChiLuManXi 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Prime PathTime Limit:1000MSMemory Limit:65536KTotal Submissions:13905Accepted:7841DescriptionThe ministers of the cabinet were quite upset by the mess... 阅读全文
posted @ 2015-07-29 09:50 ChiLuManXi 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Linux进程的概念:简单来说就是运行的程序,只不过程序是保存在硬盘上的可执行的代码。Linux一个重要的特点是可以同时启动多个进程。它是操作系统资源管理的最小单位。(我们可以通过ps和pstree查看进程和进程树)每个进程有一个进程描述符PID。Linux进程的结构:分为代码段,数据段和堆栈段三部... 阅读全文
posted @ 2015-07-27 15:53 ChiLuManXi 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Find The MultipleTime Limit:1000MSMemory Limit:10000KTotal Submissions:21433Accepted:8774Special JudgeDescriptionGiven a positive integer n, write a p... 阅读全文
posted @ 2015-07-27 10:26 ChiLuManXi 阅读(210) 评论(0) 推荐(0) 编辑