题目是陈皓回答的,来自知乎。我只是希望更多的人看到。Jeff Atwood说过这么一句话:“Code Tells You How, Comments Tell You Why”.其实,Jeff这句话并不准确,另外,我把其扩展一下——代 码 => What, How & Details文档/书 => ...
分类:
其他好文 时间:
2014-11-20 09:02:48
阅读次数:
164
描述Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell how many times does A appear as a substring of B? For ...
分类:
其他好文 时间:
2014-11-13 20:39:39
阅读次数:
139
#include<stdio.h>#include<stdlib.h>intmain()
{
FILE*file;
file=fopen("./text","rb");
//获取文件长度
fseek(file,0,SEEK_END);
inttell_len=ftell(file);
fseek(file,0,SEEK_SET);
char*buff=(char*)mem_get(char,tell_len+1);
intread_len=fread(buff,len,..
分类:
编程语言 时间:
2014-11-11 23:06:58
阅读次数:
423
1.Notifications A notification is a message you can display to the user outside of your application's normal UI. When you tell the system to issue a ....
分类:
其他好文 时间:
2014-11-07 18:59:57
阅读次数:
206
Binary String Matching描述Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell how many times does A appear as ...
分类:
其他好文 时间:
2014-11-02 16:09:51
阅读次数:
151
报错信息:You asked me to pull without telling me which branch youwant to merge with, and 'branch.v1.0.0.merge' inyour configuration file does not tell me,...
分类:
其他好文 时间:
2014-10-20 16:40:29
阅读次数:
211
Binary String Matching
时间限制:3000 ms | 内存限制:65535 KB
难度:3
描述Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell how many times does A appear as ...
分类:
编程语言 时间:
2014-10-18 09:50:53
阅读次数:
238
写入hdfsa1.channels.c1.type = memory# Define an Avro source called r1 on a1 and tell it# to bind to 0.0.0.0:41414. Connect it to channel c1.a1.sources.r...
分类:
Web程序 时间:
2014-10-18 00:33:46
阅读次数:
273
Binary String Matching
时间限制:3000 ms | 内存限制:65535 KB
难度:3
描述Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell how many times does A appear as ...
分类:
编程语言 时间:
2014-10-17 23:28:22
阅读次数:
391
bool FrameFunc(){ float dt = hge->Timer_GetDelta(); static float t = 0.0f; float tx, ty; int id; static int lastid = 0; // If ESCAPE was pressed, tell...
分类:
其他好文 时间:
2014-10-16 13:55:22
阅读次数:
203