码迷,mamicode.com
首页 > 其他好文
154464666
分类:其他好文   时间:2014-10-05 13:40:48    阅读次数:142
powershell里添加对git的支持
在powershell命令行里依次运行1. (new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex2. install-module posh-git如果你的系统是64位的,可能会报错"D:\我...
分类:其他好文   时间:2014-10-05 14:47:08    阅读次数:843
九度 1384 二维数组中的查找
#include#includeusing namespace std;#define NMAX 1000010int arr[NMAX];/** * 只需要从左下角或右上角开始查找,即可。 * 当是从右上角开始查找时, * 左上角(row = 0,column = columns - 1), * ...
分类:其他好文   时间:2014-10-05 14:46:38    阅读次数:180
UVA 10397 Connect the Campus
MST 比较水。给出的M个直接合并就好。边权就还是DIST;或者直接M个点对的边权直接设置为0#include #include #include #include #include #include #include #include #include #include #include #inc...
分类:其他好文   时间:2014-10-05 13:22:58    阅读次数:223
CString转char * ,string
CString头文件#include string头文件#include 1、CString转char *CString cstr;char *p =(LPSTR)(LPCTSTR)cstr;2、string转CStringCString.format(”%s”, string.c_str());用...
分类:其他好文   时间:2014-10-05 13:22:28    阅读次数:183
张柏芝与黄圣依同行 低调现身云南录制节目
据香港媒体报道,锋菲恋早前虽然曝光,但谢霆锋前妻张柏芝似乎心情未受影响,除了曾到日本Shopping之外,亦继续为内地综艺节目进行拍摄工作。虽然柏芝低调工作,但是她的一举一动依然备受关注。有网友拍得柏芝现身云南,同行还有女星黄圣依!原来两人同场出现是为节目进行拍摄,在餐厅内并排而坐,还不时的品尝美食...
分类:其他好文   时间:2014-10-05 13:55:18    阅读次数:250
【BUG】Kewastunpackstats(): Bad Magic 1 (0x。。。。, 0)
Kewastunpackstats(): Bad Magic 1 (0x1108f7b87, 0) In Alert Logfile After Upgrading to 11.2.0.1Applies to:Oracle Server - Enterprise Edition - Version:...
分类:其他好文   时间:2014-10-05 14:28:18    阅读次数:233
2014腾讯实习生笔试——蒙特卡洛算法求圆周率
这是2014腾讯实习生笔试(西安,武汉站)的第26题。给出二个函数,让你去理解其含义。答案是:第一个函数式用来产生(a,b)之间的随机小数。第二个函数式用蒙特卡洛概率算法求近似圆周率。先介绍一下该方法(蒙特卡洛算法):以概率和统计理论方法为基础的一种计算方法。将所求解的问题同一定的概率模型相联系,用...
分类:其他好文   时间:2014-10-05 14:28:08    阅读次数:218
Leetcode: Insert Interval
Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initial...
分类:其他好文   时间:2014-10-05 13:53:58    阅读次数:163
麻辣豆腐
材料:木棉豆腐,生粉,葱花,糖,油,豆瓣酱,辣椒粉,肉糜,酱油 做法: 01.将木棉豆腐切成小块,起油锅 02.低温放入辣椒粉,放入肉糜,拌炒.加酱油,豆瓣酱,糖 03.放入豆腐,,翻炒,上色.加适量水.开小火焖煮5分钟 04.加入生粉进行勾芡,盛盘.洒上辣椒粉,葱花 ps:LiveWriter为什...
分类:其他好文   时间:2014-10-05 13:20:28    阅读次数:130
八枚硬币
理论:现有八枚银币a b c d e f g h,已知其中一枚是假币,其重量不同於真币,但不知是较轻或较重,如何使用天平以最少的比较次数,决定出哪枚是假币,并得知假币比真币较轻或较重解法单就求假币的问题是不难,但问题限制使用最少的比较次数,所以我们不能以单纯的迴圈比较来求解,我们可以使用决策树(de...
分类:其他好文   时间:2014-10-05 15:00:18    阅读次数:134
Why you should QC your reads AND your assembly?
鲤鱼基因组:http://www.ntv.cn/a/20140923/52953.shtml关于鲤鱼基因组的测定,数据质量控制遭到质疑。Why you should QC your reads AND your assembly?Graham Etheringtonhttp://grahamethe...
分类:其他好文   时间:2014-10-05 13:53:28    阅读次数:158
596565565
(2)
分类:其他好文   时间:2014-10-05 13:52:58    阅读次数:115
HDU 2069
把多项式变成二维的即可,设c[i][j]为i枚硬币下j元的组合数。(因为限定不能超过100个硬币)。然后就是普通的生成函数的题了。#include #include #include #include #define N 260using namespace std;int c1[N][N],c2[...
分类:其他好文   时间:2014-10-05 13:35:28    阅读次数:164
CentOS 设置 Elasticsearch 只允许内网访问
vi /etc/sysconfig/iptables添加以下代码即可,设置内网网段iptables -A INPUT -p tcp --dport 9200 ! -s 127.0.0.1 -j DROP-----------------------------------------
分类:其他好文   时间:2014-10-05 14:58:38    阅读次数:270
Flaresim.V4.0.4.637 火炬模拟设计软件
Flaresim.V4.0.4.637 火炬模拟设计软件Flaresim is a computer program designed to assist professional engineers in the design and evaluation of flare systems. Th...
分类:其他好文   时间:2014-10-05 14:23:48    阅读次数:281
基础总结篇之中的一个:Activity生命周期
子曰:溫故而知新,能够為師矣。《論語》学习技术也一样,对于技术文档或者经典的技术书籍来说,指望看一遍就全然掌握,那基本不大可能,所以我们须要常常回过头再细致研读几遍,以领悟到作者的思想精髓。近来回想了一下关于Activity的生命周期,參看了相关书籍和官方文档,也有了不小的收获,对于曾经的认知有了非...
分类:其他好文   时间:2014-10-05 14:39:38    阅读次数:347
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!