码迷,mamicode.com
首页 >  
搜索关键字:magic squares    ( 1700个结果
usaco Palindromic Squares
我会告诉你进制转换我都忘了,翻出了数字逻辑课本才想起来的。/*ID: modengd1PROG: palsquareLANG: C++*/#include #include #include #include using namespace std;char leter[20]={'0','1','...
分类:其他好文   时间:2015-08-26 22:02:22    阅读次数:173
php get_magic_quotes_gpc()函数用法介绍
请问PHP怎么过滤GET或者POST的参数?防止js注入,或者一些html注入?请请提供代码参考?谢谢!if(!get_magic_quotes_gpc()){!empty($_POST) &&Add_S($_POST);!empty($_GET) &&Add_S($_GET);!empty($_C...
分类:Web程序   时间:2015-08-26 19:29:57    阅读次数:140
HDU4323-Magic Number(levenshtein distance-编辑距离)
描述: There are many magic numbers whose lengths are less than 10. Given some queries, each contains a single number, if the Levenshtein distance (see ....
分类:其他好文   时间:2015-08-26 13:37:17    阅读次数:211
poj2002 哈希
Squares Time Limit: 3500MS   Memory Limit: 65536K Total Submissions: 17666   Accepted: 6735 Description A square is a 4-sided polygon whose sides have equal length and adja...
分类:其他好文   时间:2015-08-21 23:24:31    阅读次数:219
ZOJ2835 Magic Square【幻方验证】
题目大意: 给你一个N阶的矩阵,判断是不是N阶幻方。其中使用的数字不一定是1~N^2,但是 数字一定不能有重复的。 解题思路: 根据幻方的定义,遍历判断下所有横行、竖行、斜行的和是否相等,并且用Flag[]数组 来判断是否有重复数字存在。...
分类:其他好文   时间:2015-08-21 13:33:12    阅读次数:129
流动python - 什么是魔术方法(magic method)
我们经常看到各种各样的方法已经被包围了由双下划线,例如__init__,他们是魔术方法.魔术方法python语言预订好"协议",在不同情况下不同的魔术方法,是隐式调用.我们重写这些方法,因此,操纵各种行为.class A(object): def __str__(self): r...
分类:编程语言   时间:2015-08-19 19:46:08    阅读次数:142
hdu5391 Zball in Tina Town
Problem Description Tina Town is a friendly place. People there care about each other. Tina has a ball called zball. Zball is magic. It grows larger every day. On the first day, it becomes 1 tim...
分类:其他好文   时间:2015-08-18 12:00:54    阅读次数:185
【bzoj2460】【beijing2011】【元素】【线性基+贪心】
Description   相传,在远古时期,位于西方大陆的 Magic Land 上,人们已经掌握了用魔 法矿石炼制法杖的技术。那时人们就认识到,一个法杖的法力取决于使用的矿石。 一般地,矿石越多则法力越强,但物极必反:有时,人们为了获取更强的法力而 使用了很多矿石,却在炼制过程中发现魔法矿石全部消失了,从而无法炼制 出法杖,这个现象被称为“魔法抵消” 。特别地,如果在炼制过程中使...
分类:其他好文   时间:2015-08-17 10:10:41    阅读次数:101
Lightoj 1297 - Largest Box
Memory Limit: 32 MB In the following figure you can see a rectangular card. Thewidth of the card is W and length of the card is L and thicknessis zero. Four (x*x) squares are cut from the...
分类:其他好文   时间:2015-08-16 16:46:15    阅读次数:121
hdu 5391 Zball in Tina Town (素数的判断)
Problem DescriptionTina Town is a friendly place. People there care about each other.Tina has a ball called zball. Zball is magic. It grows larger eve...
分类:其他好文   时间:2015-08-16 12:06:10    阅读次数:110
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!