码迷,mamicode.com
首页 >  
搜索关键字:end    ( 30778个结果
UVA 12502 Three Families (A)
Three FamiliesThree families share a garden. They usually clean the garden together at the end of each week, but last week, family C was on holiday, s...
分类:其他好文   时间:2014-08-17 02:26:01    阅读次数:264
不使用库函数sqrt实现求一个数的平方根
二分法:double mysqrt(double a){ if(a == 0 ) return 0; double precision = 1.0e-7, start = 0, end = a; if(a precision) { double mid = (...
分类:其他好文   时间:2014-08-16 21:04:21    阅读次数:257
delphi使用outputdebugstring调试程序和写系统日志
delphi使用outputdebugstring调试程序和写系统日志procedure TForm1.btn1Click(Sender: TObject);begin OutputDebugString('dddddd'); OutputDebugString('11');end;proced.....
分类:其他好文   时间:2014-08-16 12:25:20    阅读次数:347
用 GetEnvironmentVariable 获取常用系统环境变量
//譬如 %WINDIR% 是表示系统目录的系统变量, 可以这样获取:var s: string;begin s := GetEnvironmentVariable('WINDIR'); ShowMessage(s); {C:\WINDOWS}end;%WINDIR% {系统目录 -...
分类:其他好文   时间:2014-08-16 09:36:40    阅读次数:210
Codeforces 220B - Little Elephant and Array 离线树状数组
This problem can be solve in simpler O(NsqrtN) solution, but I will describe O(NlogN) one. We will solve this problem in offline. For each x (0?≤?x?n) we should keep all the queries that end in x...
分类:其他好文   时间:2014-08-15 21:11:49    阅读次数:292
递推第3题—极值问题
[问题描述]已知m,n为整数,且满足下列两个条件: ①m,n∈{1,2,…,k},即1k; writeln(m,' ',n);end;又是一个令人惬意的短代码,这道题重要的不是代码,而是要转化代数式以及联想到Fibonacci数列。看了看标准程序,和我的也是大同小异,就不再给出。
分类:其他好文   时间:2014-08-15 17:41:09    阅读次数:494
nginx 日志过滤网络爬虫访问日志
nginx里面有很多的爬虫日志,会影响到后期的数据分析,所以一般会去掉。nginx排除配置:location/{ #去掉爬虫Start if($http_user_agent~*"bot|spider"){ access_logoff; } #去掉爬虫end proxy_passhttp://cdel_jxjy; ...... }如果特别想要爬虫日志,也可以讲爬虫日志放到指定..
分类:其他好文   时间:2014-08-15 10:51:29    阅读次数:299
emplace_back与push_back的区别
std::vector::emplace_backC++Containers librarystd::vectortemplatevoidemplace_back(Args&&...args);(since C++11)Appends a new element to the end of the ...
分类:其他好文   时间:2014-08-14 23:27:06    阅读次数:212
centos安装后恢复windows引导
刚出现了CentOS7正式版,笔者便安装尝试,发现和REDHAT7一样,Grub2不能正确引导windows分区,解决方法很简单 vim/boot/grub2/grub.cfg 在###END/etc/grub.d/00_header###之后添加: ###BEGIN/etc/grub.d/30_os-prober### menuentry‘Windows8(loader)(on/de..
分类:Windows程序   时间:2014-08-14 21:09:29    阅读次数:300
python字符串内建函数总结
python的字符串常用内建函数方法描述string.capitalize()将字符串的第一个字母大写string.center(width)返回一个原字符串居中,并使用空格填充至长度width的新字符串string.count(str,beg=0,end=len(string))返回str在string里面出现的次数,如果beg或者end指定则返回指定范围内..
分类:编程语言   时间:2014-08-14 21:05:30    阅读次数:233
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!