码迷,mamicode.com
首页 >  
搜索关键字:lifting the stone    ( 411个结果
POJ3252---Round Numbers(数位dp)
DescriptionThe cows, as you know, have no fingers or thumbs and thus are unable to play Scissors, Paper, Stone’ (also known as ‘Rock, Paper, Scissors’, ‘Ro, Sham, Bo’, and a host of other names) in ord...
分类:其他好文   时间:2015-02-23 19:01:06    阅读次数:263
poj1740 A New Stone Game(博弈)
A New Stone Game Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 5028   Accepted: 2753 Description Alice and Bob decide to play a new stone game.At the begin...
分类:其他好文   时间:2015-02-14 13:51:28    阅读次数:178
poj 2253 Frogger [dijkstra]
传送门:http://poj.org/problem?id=2253 Frogger Description Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to v...
分类:其他好文   时间:2015-02-13 14:53:14    阅读次数:208
perl链接oracle数据库学习【一】:循环控制
#!d:/Python/bin/python __author__=‘stone‘ #引入oracle支持包 importcx_Oracle importtraceback frompip.backwardcompatimportraw_input #定义函数 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ defquerysal(conn,empnum): c..
分类:数据库   时间:2015-02-12 18:39:39    阅读次数:196
HDU1115&&POJ1385Lifting the Stone(求多边形的重心)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1115#大意:给你个n,有n个点,然后给你n个点的坐标,求这n个点形成的多边形的重心的坐标。直接套模板,我也不知道什么意思。注意在POJ上面定义double时,输出f,如果输出lf则WA,HDU上面输出l...
分类:其他好文   时间:2015-02-06 20:19:00    阅读次数:109
[POJ 1385] Lifting the Stone (计算几何)
题目链接:http://poj.org/problem?id=1385题目大意:给你一个多边形的点,求重心。首先,三角形的重心: ( (x1+x2+x3)/3 , (y1+y2+y3)/3 )然后多边形的重心就是将多边形划分成很多个三角形,以三角形面积为权值,将每个三角形的重心加权平均。注意:pai...
分类:其他好文   时间:2015-01-24 15:45:28    阅读次数:149
POJ 2253 Frogger (dijkstra算法 + 预处理)
Frogger Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 27020   Accepted: 8797 Description Freddy Frog is sitting on a stone in the middle of a lake. Sud...
分类:编程语言   时间:2015-01-16 16:49:44    阅读次数:208
【POJ1740】A New Stone Game 构造博弈
题意:多组数据,每组数据一个先n,然后给出n堆石子的数目。 两人轮流操作,每次可以从某数量为xi的石子堆中扔掉k个石子(k∈[1,xi]),然后剩余xi-k个,可以把g个石子随意分给其他堆(不能凭空建堆出来,g∈(0,xi-k))。 题解: 首先构造平衡状态: 有偶数堆,且可以两两配对。 这样可以理解为先手玩一下,后手可以有同样的应对策略。(脑洞开一下就好了,这不是难点少年) ...
分类:其他好文   时间:2015-01-10 18:18:22    阅读次数:145
HDU 3911 Black And White(线段树区间合并)
Problem Description There are a bunch of stones on the beach; Stone color is white or black. Little Sheep has a magic brush, she can change the color of a continuous stone, black to white, white to...
分类:其他好文   时间:2015-01-09 23:50:47    阅读次数:468
Dell venue 8 pro 打造全功能机
这次的目的,是打造一个全功能机,预装Rosetta Stone、Supememo软件学习,能处理office文档,能当mp3播放机,能看电影能上网,能当电子书阅读器(还要能读),玩游戏当然也能满足要求。Dell venue 8 pro显然是性价比最好的Win8小平板,国货想自强还任重道远。...
分类:其他好文   时间:2014-12-28 14:14:21    阅读次数:328
411条   上一页 1 ... 29 30 31 32 33 ... 42 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!