码迷,mamicode.com
首页 >  
搜索关键字:tom    ( 8124个结果
已知矩形面积求最小周长
DescriptionThere is a piece of paper in front of Tom, its length and width are integer. Tom knows the area of this paper, he wants to know the minimum...
分类:其他好文   时间:2015-08-02 21:14:10    阅读次数:288
HDU 5224 解题心得
原题DescriptionThere is a piece of paper in front of Tom, its length and width are integer. Tom knows the area of this paper, he wants to know the minim...
分类:其他好文   时间:2015-08-02 19:54:04    阅读次数:229
MapReduce实现QQ好友推荐
大家都知道qq用户量上亿,每个用户又有很多的好友,因此,数据量十分的庞大,如何才能实现QQ的好友推荐呢? 下面举一个例子: A有QQ好友B B有QQ好友C 则A,C有可能是好友。 当A登录的时候,则会向A推荐C,当C登录的时候,则会向C推荐A。Demo输入数据 map阶段 key:主 value:从 key:从 value:主 将一条记录分别作为key,value进行输出。 tom-->...
分类:其他好文   时间:2015-08-01 23:40:19    阅读次数:326
Tom and paper
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5224题意: 给出矩形的面积,求出最小的周长。样例:Sample Input32712Sample Output61614思路:这个题只需要注意时间就可以了。 刚开始就就是直接从1开始循环找出满足条件的后...
分类:其他好文   时间:2015-08-01 17:07:50    阅读次数:80
HDU 5224 Tom and paper(最小周长)
HDU 5224 Tom and paper(最小周长)Time Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uDescriptionThere is a piece of paper in front of Tom, it...
分类:其他好文   时间:2015-08-01 15:30:14    阅读次数:92
Tom and paper
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5224题意: 给定一张长方形纸的面积,其边长均为整数,求最小周长。输入:首行输入案例数T,接下来T行分别输入测试面积n; 输出:单行输出最小周长。案例: Sample Input 3 2 ...
分类:其他好文   时间:2015-07-31 23:27:45    阅读次数:217
c.Tom and paper
Tom and paperDescriptionThere is a piece of paper in front of Tom, its length and width are integer. Tom knows the area of this paper, he wants to kno...
分类:其他好文   时间:2015-07-31 23:21:58    阅读次数:142
【Python】词典
词典 (dictionary)。与列表相似,词典也可以储存多个元素。这种储存多个元素的对象称为容器(container)基本概念常见的创建词典的方法:>>>dic = {'tom':11, 'sam':57,'lily':100}>>>print type(dic)词典和表类似的地方,是包含有多个元...
分类:编程语言   时间:2015-07-31 23:17:40    阅读次数:223
MSSQL—字符串分离(Split函数)
前面提到了记录合并,有了合并需求肯定也会有分离需求,说到字符串分离,大家肯定会想到SPLIT函数,这个在.NET,Java和JS中都有函数,很可惜在SQL SERVER中没有,我们只能自己来写这么一个函数。首先来分析一下怎么写这个函数,以之前合并的字符串为例,“张三,李四,王五,钱六,赵七,Tom,...
分类:数据库   时间:2015-07-31 21:48:12    阅读次数:192
已知面积求周长
Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uDescriptionThere is a piece of paper in front of Tom, its length and width are int...
分类:其他好文   时间:2015-07-31 21:39:34    阅读次数:160
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!