The API: int read4(char *buf) reads 4 characters at a time from a file.The return value is the actual number of characters read. For example, it retur...
分类:
其他好文 时间:
2014-12-13 06:13:49
阅读次数:
133
The API: int read4(char *buf) reads 4 characters at a time from a file.The return value is the actual number of characters read. For example, it retur...
分类:
其他好文 时间:
2014-12-13 06:07:23
阅读次数:
209
C -Super Jumping! Jumping! Jumping!Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionNowadays, a kind of chess game called ...
分类:
其他好文 时间:
2014-12-12 23:22:28
阅读次数:
214
package com.doctor.slf4j;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* 如何打印异常堆栈信息。
* @author doctor
*
* @time 2014年12月11日 上午9:49:00
*/
public class Lo...
分类:
其他好文 时间:
2014-12-12 22:17:25
阅读次数:
273
0.57s,
import itertools
import time
def conquer():
ans = 0
DIGIT_LIMIT = 7
ITER_STR = "0123456789"
sum_square = lambda ss: sum( int( s ) ** 2 for s in str( ss ) )
fact = lambda n...
分类:
其他好文 时间:
2014-12-12 22:15:46
阅读次数:
247
一个很简单的爬虫,爬取中大周边地点的点评信息。# -*- coding: utf-8 -*-import requestsimport reimport timedef placeSplider(name, star, url): time.sleep(5) res = requests...
分类:
其他好文 时间:
2014-12-12 22:08:27
阅读次数:
288
HDU Today
Time Limit : 15000/5000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)
Total Submission(s) : 6 Accepted Submission(s) : 1
Font: Times New Roman | Verdana | Georgia
F...
分类:
其他好文 时间:
2014-12-12 20:53:31
阅读次数:
208
转载请注明出处:http://www.cnblogs.com/fraud/ ——by fraudGoing from u to v or from v to u?Time Limit: 2000MSMemory Limit: 65536KTotal Submissions: 14778Accepte...
分类:
其他好文 时间:
2014-12-12 20:45:53
阅读次数:
127
linux下的-atime,-ctime,-mtime含义我们经常会在论坛或者群里面被问到,在linux或者unix下如何查看某文件的创建日期?经常又会有人说用find命令加选项-ctime,其实这里的-ctime并非是create time,而是change time。在linux或者unix这类...
分类:
系统相关 时间:
2014-12-12 20:38:09
阅读次数:
294
在android设备中,我们可以通过如下方式获取到设备log:
adb logcat -v time
但是我们通过这种方式得到了很多对我们无用的log。所以我们可以通过如下方式对log进行过滤:
adb logcat -v time -s "TAG"
-S:代表只得到TAG所对应的log。
或者:
adb logcat |grep -v "TAG1" |grep -v "TAG2"
-V:代表在所有log中,不显示TAG1所对应的log。...
分类:
移动开发 时间:
2014-12-12 19:19:15
阅读次数:
153