You are given the task to design a lighting system for a huge conference hall. After doing a lot of calculation & sketching, you have figured out the requirements for an energy-efficient design that c...
分类:
其他好文 时间:
2014-08-18 00:21:55
阅读次数:
211
Secret agent Maria was sent to Algorithms City to carry out an especially dangerous mission. After several thrilling events we find her in the first station of Algorithms City Metro, examining the tim...
分类:
其他好文 时间:
2014-08-18 00:21:13
阅读次数:
383
题目链接:uva 1560 - Extended Lights Out
题目大意:给定一个5?6的矩阵,每个位置上有一个灯和开关,初始矩阵表示灯的亮暗情况,如果按了这个位置的开关,将会导致周围包括自己位置的灯状态变换,求一个按开关位置,保证所有灯都灭掉。
解题思路:
枚举,枚举第一行的状态,然后递推出后面四行的状态。 高斯消元,对于每个位置对定变量,这样列出30个方程求解。
C...
分类:
其他好文 时间:
2014-08-18 00:16:43
阅读次数:
228
已读书籍:代码整洁之道(Clean Code, Robert C. Martin)失控(Out of Control,Kevin Kelly)用户故事与敏捷方法(User Story Applied,Mike Cohn)建筑的永恒之道(The Timeless Way of Building, C....
分类:
其他好文 时间:
2014-08-18 00:04:43
阅读次数:
172
ls /usr/include/stdio.h? 查看头文件 gcc -E print.c > print.i 对文件进行预处理 gcc -v print.c 所有编译的全过程 ls /usr/lib/libc.a? 标准C库 objdump -d a.out??? 生成反汇编代码...
分类:
编程语言 时间:
2014-08-17 20:03:22
阅读次数:
219
??
资源URL:http://download.csdn.net/detail/attagain/7771065
Tomcat默认生成的日志文件catalina.out,随着时间的推移,逐渐增大,可能达到G数量级。文件过大,我们将无法使用过常规编辑工具查看,严重影响系统维护工作。解决此问题,主要从Tomcat和代码两方面考虑。
一、 代码本身考虑
Tomcat输出catalina.ou...
分类:
其他好文 时间:
2014-08-17 15:38:42
阅读次数:
188
Til the Cows Come Home
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 30007
Accepted: 10092
Description
Bessie is out in the field and wants to get back t...
分类:
其他好文 时间:
2014-08-17 15:35:32
阅读次数:
226
mail_list.jsp 查看邮件列表 查看邮件列表 邮箱scau2008@126.com的收件箱中共有"+message.length+"件邮件"); out.println(""); out.println(""); out.println(""); ...
分类:
Web程序 时间:
2014-08-17 11:32:42
阅读次数:
330
要求:输入一个1-10的整数,打印出一个如下图的平行四边形 public static void main(String[] args) { System.out.println("请输入需要打印的平行四边形行数:"); Scanner sc=new Scanner...
分类:
其他好文 时间:
2014-08-16 20:58:31
阅读次数:
167
//GCD 的使用方式
dispatch_async(dispatch_queue_t queue, dispatch_block_t block);
async表明运行方式
queue则是你把任务交给那个线程队列来处理
block代表的是你要做的事情
//线程运行方式
dispatch_async 异步执行
dispatch_sync 同步执行
dispatch_delay 延迟执行
......
分类:
移动开发 时间:
2014-08-16 15:07:30
阅读次数:
274