码迷,mamicode.com
首页 >  
搜索关键字:magic squares    ( 1700个结果
pat1058. A+B in Hogwarts (20)
1058. A+B in Hogwarts (20)时间限制50 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIf you are a fan of Harry Potter, you would know the world of magic...
分类:其他好文   时间:2015-09-01 21:18:53    阅读次数:260
poj 2002 Squares
题目连接http://poj.org/problem?id=2002SquaresDescriptionA square is a 4-sided polygon whose sides have equal length and adjacent sides form 90-degree angl...
分类:其他好文   时间:2015-09-01 19:53:23    阅读次数:166
[CareerCup] 7.5 A Line Cut Two Squares in Half 平均分割两个正方形的直线
7.5 Given two squares on a two-dimensional plane, find a line that would cut these two squares in half. Assume that the top and the bottom sides of th...
分类:其他好文   时间:2015-09-01 08:03:06    阅读次数:191
hdu 3524 Perfect Squares 推公式求逆元
Perfect Squares Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 501    Accepted Submission(s): 272 Problem Description A number x i...
分类:其他好文   时间:2015-08-31 01:17:07    阅读次数:287
游戏引擎基于Handle的资源管理
基于Handle的资源管理方案,第一时间想到的应该是Windows了,但是真正想让我实施这个方案的,是《游戏编程精粹1》里面的游戏资源管理篇章的给出的方案。在《游戏编程精粹1》里面的资源标示Handle类,是一个极为简单的32位int类型,分为前16位的index和后16位的magic num,ma...
分类:其他好文   时间:2015-08-31 00:57:03    阅读次数:300
UVA - 201 Squares(模拟 + 暴力)
题意:给出一些单位线段, 问各种大小的正方形有多少个。要控制输出格式。 解题思路:模拟存储横线和竖线,暴力枚举各种尺寸,O(N ^ 4),此题数据弱, 实际所用时间很短。 题目:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=19423 Memory: 0 KB   Time: 16 MS ...
分类:其他好文   时间:2015-08-29 15:31:41    阅读次数:267
pat1037. Magic Coupon (25)
1037. Magic Coupon (25)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe magic shop in Mars is offering some magic coupons. Each coupon ha...
分类:其他好文   时间:2015-08-29 15:14:54    阅读次数:153
HDU 1988 Flipping Burned Pancakes (同uva煎饼一样的题)
Problem Description The cook at the Frobbozz Magic Pancake House sometimes falls asleep on the job while cooking pancakes. As a result, one side of a stack of pancakes is often burned. Clearly, it ...
分类:其他好文   时间:2015-08-27 09:39:08    阅读次数:281
HDU 4427 Math Magic (2012年长春现场赛H题)
1.题目描述:点击打开链接 2.解题思路:本题要求寻找k个正整数,它们的和恰好是N,它们的LCM恰好是M的解的个数。可以设置一个三维的dp来解决。用dp(i,j,k)表示选择i个数,它们的和恰好是j,它们的LCM恰好是k的个数。那么答案就是dp(k,n,m)。不过这里介绍一种利用状态压缩思想求解的方法。 通过题意可以发现,N,M的范围都比较小,不超过1000,而1000之内的所有数的不...
分类:其他好文   时间:2015-08-27 00:28:06    阅读次数:177
Magic Number(Levenshtein distance算法)
Magic NumberTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 4323DescriptionThere are many magic numbers whos...
分类:编程语言   时间:2015-08-26 22:15:25    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!