free查看系统中空闲或被使用的内存。uname打印系统信息,kernal、cup、硬件等等。uptime显示出目前系统已经开机多久的时间,以及 1, 5, 15 分钟的平均负载。netstat查看网络方面的信息,网络连接,路由表,接口状态 (Interface Statistics),masque...
分类:
其他好文 时间:
2015-08-18 21:18:05
阅读次数:
127
A boy named Gena really wants to get to the “Russian Code Cup” finals, or at least get a t-shirt. But the offered problems are too complex, so...
分类:
其他好文 时间:
2015-08-16 15:07:04
阅读次数:
162
程序启动就是有一个运行循环,监听系统中的所有事件运行有两种模式(从代码来看)NSDefaultRunLoopMode(默认,用户普通点击)NSRunLoopCommonModes(滚动)一旦发现有滚动事件,默认模式暂时不监听Timer,(是一个没地位的,)如果cpu在做大规模运算,cup没时间打理Timer,Timer..
分类:
其他好文 时间:
2015-08-11 23:41:38
阅读次数:
141
上一篇文章讲到join()方法的时候,用到了一个函数即为yield()方法,它的作用是将cup让与具有相同优先级的线程去使用。本篇文章就为大家讲述线程中的一些关于等待和唤醒的函数。
sleep():
使当前线程暂停使用一段时间,让其它线程继续有机会执行,但是它并不释放对象锁,也就是说有synchronized关键字的时候,其它线程仍然不能访问其共享资源。sleep()方法需要用户去设置阻塞的时...
分类:
编程语言 时间:
2015-08-05 12:53:42
阅读次数:
176
1011. World Cup Betting (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueWith the 2010 FIFA World Cup running, football fans the world ov...
分类:
其他好文 时间:
2015-08-04 00:22:07
阅读次数:
116
Linux作为一操作系统,计算机硬件是基础,计算机硬件分为控制器,运算器,存储器和输入输出设备,其中我们经常进行管理操作的就是存储器,通过对其基本构造和工作原理的了解,有助于我们进行后面的磁盘规划,分区,文件系统建立等能有效进行。CUP,中央处理器,也就是我们上面..
分类:
系统相关 时间:
2015-08-03 22:58:02
阅读次数:
226
题目链接
题意:给你n个数,求一个最长子序列,要求是这个子序列中任意两个数,其中一个一定是另外一个的倍数
代码如下:
#include
#include
#include
#include
const int N = 1E6+10;
using namespace std;
int dp[N], a;
int main()
{
int n, maxn;
while...
分类:
其他好文 时间:
2015-08-01 17:26:05
阅读次数:
137
The WHU ACM Team has a big cup, with which every member drinks water. Now, we know the volume of the water in the cup, can you tell us it height?The r...
分类:
其他好文 时间:
2015-08-01 15:34:17
阅读次数:
85
The WHU ACM Team has a big cup, with which every member drinks water. Now, we know the volume of the water in the cup, can you tell us it height?The r...
分类:
其他好文 时间:
2015-08-01 10:01:36
阅读次数:
120
F. Clique in the Divisibility Graph题目传送:Clique in the Divisibility Graph解法:筛法+DPAC代码:#include
#include
#include
#include
#include
#include
#include ...
分类:
其他好文 时间:
2015-07-31 10:38:06
阅读次数:
112