码迷,mamicode.com
首页 >  
搜索关键字:magic squares    ( 1700个结果
uva 1629
1629 - Cake slicingTime limit: 3.000 secondsA rectangular cake with a grid ofm*nunit squares on its top needs to be sliced into pieces. Several cherri...
分类:其他好文   时间:2015-05-16 10:22:32    阅读次数:156
sicily 1024 Magic Island
深搜中与记录长度有关的题目,都差不多是这样的!还有邻接表的写法,不够熟! 1 #include 2 3 using namespace std; 4 5 int ans; 6 7 bool vis[10005]; 8 9 struct edge {10 int u;11 i...
分类:其他好文   时间:2015-05-15 06:35:30    阅读次数:133
hdu3938 Portal
Problem Description ZLGG found a magic theory that the bigger banana the bigger banana peel .This important theory can help him make a portal in our universal. Unfortunately, making a pair of porta...
分类:其他好文   时间:2015-05-13 22:06:01    阅读次数:153
(线性基) bzoj 2460
2460: [BeiJing2011]元素Time Limit:20 SecMemory Limit:128 MBSubmit:333Solved:176[Submit][Status][Discuss]Description 相传,在远古时期,位于西方大陆的 Magic Land 上,人们已经掌握...
分类:其他好文   时间:2015-05-13 21:20:18    阅读次数:126
Sherlock and Squares
//Link https://www.hackerrank.com/challenges/sherlock-and-squares 1 from math import sqrt # 用什么,引什么,减少浪费和错误可能性 2 3 4 def main(): 5 t = int(raw_...
分类:其他好文   时间:2015-05-13 21:14:35    阅读次数:106
UVa1643 - Angle and Squares(几何)
有n个正方形和一个角(均在第一象限中),使这些正方形与这个角构成封闭的阴影区域,求阴影区域面积的最大值。 分析: 直观上来看,当这n个正方形的对角线在一条直线上时,封闭区域的面积最大。(虽然我不太会证明,=_=||) 设所有正方形边长之和为L,OA、OB两直线方程分别为:y = k1x  y = k2x,设A(x1, k1x1), B(x2, k2x2),可列出方程:...
分类:其他好文   时间:2015-05-12 17:19:49    阅读次数:112
1037. Magic Coupon (25)
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 product, you may get N times the value of that product b...
分类:其他好文   时间:2015-05-10 06:24:46    阅读次数:163
YTUOJ-Beautiful Meadow
Description  Tom's Meadow Tom has a meadow in his garden. He divides it into N * M squares. Initially all the squares were covered with grass. He mowed down the grass on some of the squares and t...
分类:其他好文   时间:2015-05-09 11:50:34    阅读次数:318
R语言基础编程技巧汇编 - 27
1.      向量循环移位 library("magic") x magic::shift(x,1) # [1] 10 1  2  3 4  5  6 7  8  9 magic::shift(x,1) # [1] 10 1  2  3 4  5  6 7  8  9 magic::shift(x,2) # [1] 9 10  1  2 3  4  5 6  7  8 mag...
分类:编程语言   时间:2015-05-08 09:36:45    阅读次数:363
字符串操作函数5!!
1、addslashes() 在预定义字符串前添加反斜杠 magic_quotes_gpc=on 对get/post提交的数据自动转义 get_magic_quotes_gpc() 获取php是否开启自动转义 stripslashes() 吧转义字符前反斜杠删除 print_r(ini_get_al...
分类:其他好文   时间:2015-05-07 14:21:58    阅读次数:101
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!