码迷,mamicode.com
首页 >  
搜索关键字:magic    ( 1247个结果
PAT1037. Magic Coupon
The magic shop in Mars is offering some magic coupons. Each coupon has an integer N printed on it, meaning that when you use this coupon with a produc...
分类:其他好文   时间:2015-02-15 16:34:42    阅读次数:124
Magic Square
这道题是比较简单的,三个字——找规律。思路也应该是比较清晰的,下面,我们先看一下题目吧。 DescriptionIn recreational mathematics, a magic square of n-degree is an arrangement of n2 numbers, distinct integers, in a square, such that the n numbers...
分类:其他好文   时间:2015-02-15 13:34:23    阅读次数:239
ural 2003. Simple Magic 数论 因数分解
题意:就是一列数字, 像他给的样例一样操作 {2, 3, 3, 6} turns it into array {gcd(2, 3), gcd(2, 3), gcd(2, 6), gcd(3, 3), gcd(3, 6), gcd(3, 6)}, that is {1, 1, 2, 3, 3, 3}. 然后问,不断这要操作,几遍可以得到都是1的数组。 做法: 暴力打个表发现 要么 只用1次 要么两次 要么 就是无穷的。 因为n很大,操作一次就要超时的。所以要在原始数组中想方法判断。 开始,我是通过暴力打表...
分类:其他好文   时间:2015-02-12 16:18:25    阅读次数:202
Ucenter源码解析之——admin.php
上一篇,我们讲到了Ucenter的index.php接收到m,a为空参数的时候,会直接跳到admin.php,这个是/目录下的admin.php.先看前面的代码。先关闭错误提示和magic_quotes_runtime,如果启用了magic_quotes_runtime,大多数返回任何形式外部数据的...
分类:Web程序   时间:2015-02-12 12:19:27    阅读次数:163
URAL 2003. Simple Magic(数学啊 )
URAL 2003. Simple Magic(数学啊 )...
分类:其他好文   时间:2015-02-11 20:39:10    阅读次数:151
【php】提交的特殊字符会被自动转义
在处理mysql和GET、POST的数据时,常常要对数据的引号进行转义操作。PHP中有三个设置可以实现自动对’(单引号),”(双引号),\\(反斜线)和 NULL 字符转移。PHP称之为魔术引号,这三项设置分别是magic_quotes_gpc影响到 HTTP 请求数据(GET,POST 和 COO...
分类:Web程序   时间:2015-02-10 10:36:01    阅读次数:153
杭电ACM 找循环节 std::ios::sync_with_stdio(false);
Problem Description As a unicorn, the ability of using magic is the distinguishing feature among other kind of pony. Being familiar with composition and decomposition is the fundamental course ...
分类:移动开发   时间:2015-02-06 21:52:01    阅读次数:226
PAT1058. A+B in Hogwarts
If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver ...
分类:其他好文   时间:2015-02-04 16:24:31    阅读次数:240
hdu 3794 Magic Coupon
浙大计算机研究生保研复试上机考试-2011年贪心:注意:输入输出用scanf printf 可以加快速度,用cin WA 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; ...
分类:其他好文   时间:2015-02-03 22:40:42    阅读次数:205
1058. A+B in Hogwarts
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-02-03 22:39:22    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!