码迷,mamicode.com
首页 >  
搜索关键字:square    ( 2122个结果
Codeforces554B:Ohana Cleans Up
Ohana Matsumae is trying to clean a room, which is divided up into an n by n grid of squares. Each square is initially either clean or dirty. Ohana ca ...
分类:其他好文   时间:2017-08-11 23:12:22    阅读次数:251
python进阶(4):初识面向对象
一切皆对象! 预习: #仿照正方形类写一个圆形类 class Square: def __init__(self,length_of_side): self.length_of_side = length_of_side def square(self): '面积' return self.leng ...
分类:编程语言   时间:2017-08-10 20:55:01    阅读次数:189
基础深搜小结
目前看来,简单深搜题大致分为三类题型: 1是连通块问题,求连通块大小和数量。 2是迷宫问题,问地图内放几个坐标,有几个放法。 3是输出路径问题。 1.这个问题的经典例题是计算水塘(pku-2386 lake counting) 例题: Due to recent rains, water has p ...
分类:其他好文   时间:2017-08-10 19:46:19    阅读次数:174
UVA - 10591 Happy Number
Happy Number UVA - 10591 Let the sum of the square of the digits of a positive integer S0 be represented by S1. In a similar way, let the sum of the s ...
分类:移动开发   时间:2017-08-10 17:04:00    阅读次数:240
LeetCode解题思路:595. Big Countries
There is a table World A country is big if it has an area of bigger than 3 million square km or a population of more than 25 million. Write a SQL solu ...
分类:其他好文   时间:2017-08-09 23:50:35    阅读次数:248
Codeforces Round #423 (Div. 2) A-C
A. Restaurant Tables 这里看错题意还wa了两发.... 按题意模拟就行了 水题 B. Black Square 问补全一个B组成的正方形至少还要多少个B 直接记录四个角的值然后就差不多了 一个B都没有的话直接输出1就行 C. String Reconstruction 题意:告诉 ...
分类:其他好文   时间:2017-08-09 22:19:15    阅读次数:226
Map,Filter 和 Reduce
Map会将一个函数映射到一个输入列表的所有元素上 map(function_to_apply, list_of_inputs) items = [1, 2, 3, 4, 5] squared = list (map(lambda x: x**2, items)) number_list = rang ...
分类:其他好文   时间:2017-08-09 15:42:48    阅读次数:90
poj-2676 Sudoku
Sudoku is a very simple task. A square table with 9 rows and 9 columns is divided to 9 smaller squares 3x3 as shown on the Figure. In some of the cell ...
分类:其他好文   时间:2017-08-09 12:53:14    阅读次数:154
Round #423 B. Black Square(Div.2)
Polycarp has a checkered sheet of paper of size n?×?m. Polycarp painted some of cells with black, the others remained white. Inspired by Malevich's "B ...
分类:其他好文   时间:2017-08-08 17:56:43    阅读次数:152
DFS——hdu1518Square
一、题目回顾 题目链接:Square Problem Description Given a set of sticks of various lengths, is it possible to join them end-to-end to form a square? Input The fi ...
分类:其他好文   时间:2017-08-07 20:38:39    阅读次数:161
2122条   上一页 1 ... 80 81 82 83 84 ... 213 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!