码迷,mamicode.com
首页 >  
搜索关键字:square    ( 2122个结果
leetcode 火柴拼正方形 深搜
还记得童话《卖火柴的小女孩》吗?现在,你知道小女孩有多少根火柴,请找出一种能使用所有火柴拼成一个正方形的方法。不能折断火柴,可以把火柴连接起来,并且每根火柴都要用到。 输入为小女孩拥有火柴的数目,每根火柴用其长度表示。输出即为是否能用所有的火柴拼成正方形。 示例?1: 输入: [1,1,2,2,2] ...
分类:其他好文   时间:2019-08-17 20:25:09    阅读次数:187
[题解]UVA1603 破坏正方形 Square Destroyer
要学好搜索,搜索是很重要的算法。那些很厉害的选手都是搜索打得好的。(By Instructor Li) ...
分类:其他好文   时间:2019-08-17 10:46:54    阅读次数:114
CF1198E Rectangle Painting 2
题目 There is a square grid of size $n×n$. Some cells are colored in black, all others are colored in white. In one operation you can select some rectan ...
分类:其他好文   时间:2019-08-10 17:47:49    阅读次数:100
LeetCode:DP专题详解
221 medium 221. Maximal Square Medium Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its are ...
分类:其他好文   时间:2019-08-06 20:01:38    阅读次数:68
Retrofit的使用
概述 Retrofit 是一个类型安全的 REST 客户端,Square 提供的开源产品。它可以直接解析 JSON 数 据变成 JAVA 对象,甚至支持回调操作,处理不同的结果。 官方地址:http://square.github.io/retrofit/ 在官方地址中可以下载 jar 包,也可以在 ...
分类:其他好文   时间:2019-08-03 00:48:23    阅读次数:131
POJ 1979 Red and Black 四方向棋盘搜索
Red and Black Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 50913 Accepted: 27001 Description There is a rectangular room, covered with s ...
分类:其他好文   时间:2019-08-02 18:14:18    阅读次数:105
Make Square CodeForces - 1028H (dp)
大意: 若一个序列存在两个数的积为完全平方数, 则为好序列. 给定序列$a$, 每次询问求子区间$[l,r]$最少修改多少次可以成为好序列, 每次修改可以任选素数$p$, 任选一个数乘或除$p$. $dp_{x,y}$表示状态为$x$删除$y$个因子的最大位置 ...
分类:其他好文   时间:2019-07-30 22:03:29    阅读次数:138
I - Red and Black DFS
There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he c ...
分类:其他好文   时间:2019-07-25 00:55:44    阅读次数:150
ZOJ-1107-FatMouse and Cheese-dfs+记忆化搜索
FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is labelled (p,q) where 0 <= ...
分类:其他好文   时间:2019-07-24 22:32:23    阅读次数:105
CodeForces - 1114D Flood Fill (区间dp)
You are given a line of nn colored squares in a row, numbered from 11 to nn from left to right. The ii-th square initially has the color cici. Let's s ...
分类:其他好文   时间:2019-07-24 21:09:13    阅读次数:116
2122条   上一页 1 ... 24 25 26 27 28 ... 213 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!