码迷,mamicode.com
首页 >  
搜索关键字:square    ( 2122个结果
UVa 11520 - Fill the Square
题目:给你一个n*n的格子,有些里面有大写字母,用大写字母填满格子,相邻的格子中字母不相同,             并且使得从上到下,从左到右的字母字典序最小。 分析:构造。将格子从上到下,从左到右编号,然后按编号填充,避免冲突即可,这样一定最小。             (如果,该方案不是最小,那么之前一定会选择更小的方案,而不是本方案) 说明:╮(╯▽╰)╭。 #include ...
分类:其他好文   时间:2015-06-17 21:38:21    阅读次数:108
221. Maximal Square
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the following matr...
分类:其他好文   时间:2015-06-17 08:13:14    阅读次数:112
[POJ 2588]--Snakes(并查集)
题目链接:http://poj.org/problem?id=2588SnakesTime Limit:1000MSMemory Limit:65536KDescriptionBuffalo Bill wishes to cross a 1000x1000 square field. A numbe...
分类:其他好文   时间:2015-06-16 18:37:05    阅读次数:175
Java for LeetCode 221 Maximal Square
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the following matr...
分类:编程语言   时间:2015-06-15 18:34:55    阅读次数:1218
SRM 661 #DIV2
Problem Statement   You have a rectangular board that is placed vertically. The board is divided into a grid of unit square cells. Some grid cells contain obstacles and some cells contain a...
分类:其他好文   时间:2015-06-15 00:19:35    阅读次数:113
poj 1979 Red and Black
Red and BlackTime Limit:1000MSMemory Limit:30000KTotal Submissions:25228Accepted:13605DescriptionThere is a rectangular room, covered with square tile...
分类:其他好文   时间:2015-06-14 15:02:56    阅读次数:114
【ActionScript】定时器,修改组件的透明度
如下图,设置一个影片剪辑,里面放置一个正方线,不断地变淡又变成清。 虽然以下的动画可以轻松通过插入关键帧补间来实现。但是,还是希望通过这个例子,还说明ActionScript3.0定时器的使用 一、基本布局 1、通过Ctrk+F8,或者插入->新建原件,新建一个名为square的影片剪辑 2、在影片剪辑中通过矩形工具,设置其没有笔触,否则一会儿用选择工具很难选取,在影片剪辑...
分类:其他好文   时间:2015-06-14 12:33:52    阅读次数:84
非常不错的日期选择器android-times-square
十分不错的日期选择器,界面也十分和谐,支持单选、多选、范围选择、弹框显示、自定义样式等操作,集成起来也十分简单,有兴趣的可以关注作者Github:https://github.com/square/android-times-square...
分类:移动开发   时间:2015-06-12 10:08:05    阅读次数:209
【POJ2286】The Rotation Game
DescriptionThe rotation game uses a # shaped board, which can hold 24 pieces of square blocks (see Fig.1). The blocks are marked with symbols 1, 2 and...
分类:其他好文   时间:2015-06-11 20:54:14    阅读次数:120
hdu3015 Disharmony Trees
Problem Description One day Sophia finds a very big square. There are n trees in the square. They are all so tall. Sophia is very interesting in them. She finds that trees maybe disharmony and...
分类:其他好文   时间:2015-06-10 22:36:35    阅读次数:149
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!