我会告诉你进制转换我都忘了,翻出了数字逻辑课本才想起来的。/*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或者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
描述: 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
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
题目大意:
给你一个N阶的矩阵,判断是不是N阶幻方。其中使用的数字不一定是1~N^2,但是
数字一定不能有重复的。
解题思路:
根据幻方的定义,遍历判断下所有横行、竖行、斜行的和是否相等,并且用Flag[]数组
来判断是否有重复数字存在。...
分类:
其他好文 时间:
2015-08-21 13:33:12
阅读次数:
129
我们经常看到各种各样的方法已经被包围了由双下划线,例如__init__,他们是魔术方法.魔术方法python语言预订好"协议",在不同情况下不同的魔术方法,是隐式调用.我们重写这些方法,因此,操纵各种行为.class A(object): def __str__(self): r...
分类:
编程语言 时间:
2015-08-19 19:46:08
阅读次数:
142
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
Description
相传,在远古时期,位于西方大陆的 Magic Land 上,人们已经掌握了用魔
法矿石炼制法杖的技术。那时人们就认识到,一个法杖的法力取决于使用的矿石。
一般地,矿石越多则法力越强,但物极必反:有时,人们为了获取更强的法力而
使用了很多矿石,却在炼制过程中发现魔法矿石全部消失了,从而无法炼制
出法杖,这个现象被称为“魔法抵消” 。特别地,如果在炼制过程中使...
分类:
其他好文 时间:
2015-08-17 10:10:41
阅读次数:
101
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
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