码迷,mamicode.com
首页 >  
搜索关键字:lines    ( 2570个结果
LeetCode解题报告--Container With Most Water
题目:最大的盛水容器Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Fi...
分类:其他好文   时间:2015-08-13 18:00:02    阅读次数:103
学习python自动化运维diff-text
1.通过html比较diff_text两文本不同之处#!/usr/bin/envpythonimportdifflibtext1="""text1:Thismoduleprovidesclassesandfunctionsforcomparingsequences.includingHTMLandcontextandunifieddiffs.difflibdocumentv7.4addstring"""text1_lines=text1.splitlines()text2="""text..
分类:编程语言   时间:2015-08-12 19:56:38    阅读次数:201
leetcode -eleven:Container With Most Water
Given?n?non-negative integers?a1,?a2, ...,?an, where each represents a point at coordinate (i,?ai).?n?vertical lines are drawn such that the two endpoints of line?i?is at (i,?ai)...
分类:其他好文   时间:2015-08-11 23:49:14    阅读次数:357
POJ3739 Special Squares 解题报告
POJ3739 Special Squares描述:There are some points and lines parellel to x-axis or y-axis on the plane. If arbitrary chosen two lines parallel to x-axis ...
分类:其他好文   时间:2015-08-11 06:55:08    阅读次数:156
HNU11376:Golf Bot
Problem description Input The first line has one integer: N, the number of different distances the Golf Bot can shoot. Each of the following N lines has one integer, ki, the di...
分类:其他好文   时间:2015-08-10 20:01:23    阅读次数:123
POJ 3390 Print Words in Lines(DP)
Print Words in LinesTime Limit:1000MSMemory Limit:65536KTotal Submissions:1624Accepted:864DescriptionWe have a paragraph of text to print. A text is a...
分类:其他好文   时间:2015-08-09 16:48:07    阅读次数:106
BZOJ2924 : [Poi1998]Flat broken lines
首先旋转坐标系$x'=x-y$$y'=-x-y$则对于一个点,它下一步可以往它左上角任意一个点连线。根据Dilworth定理,答案=这个偏序集最长反链的长度。设f[i]为到i点为止的最长反链长度,则f[i]=max(f[j])+1,j在i的左下角按x坐标排序后用树状数组优化DP即可,时间复杂度$O(...
分类:其他好文   时间:2015-08-07 23:52:20    阅读次数:277
zoj3299 Fall the Brick
Time Limit: 3 Seconds      Memory Limit: 32768 KB Now the God is very angry, so he wants to punish the lazy, greedy humans. He chooses to throw some lines of bricks (just down from the very high Heav...
分类:其他好文   时间:2015-08-06 13:21:46    阅读次数:119
如何删除 SVN 文件夹下面的小图标
第一步:右键新建文本文件。第二步:打开 并复制一下文件 到 新建文本文件。@echo on color 2f mode con: cols=80 lines=25 @REM @echo 正在清理SVN文件,请稍候...... @rem 循环删除当前目录及子目录下所有的SVN文件 @rem for /...
分类:其他好文   时间:2015-08-06 12:31:58    阅读次数:118
[leetcode]Container With Most Water
题目:Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints ...
分类:其他好文   时间:2015-08-06 11:06:23    阅读次数:81
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!