题目1004:Median时间限制:1 秒内存限制:32 兆特殊判题:否提交:14162解决:3887题目描述: Given an increasing sequence S of N integers, the median is the number at the middle position...
分类:
其他好文 时间:
2015-02-14 01:04:14
阅读次数:
219
传送门:http://poj.org/problem?id=2253
Frogger
Description
Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to v...
分类:
其他好文 时间:
2015-02-13 14:53:14
阅读次数:
208
div 自适应宽度 top middle left middle right ...
分类:
其他好文 时间:
2015-02-12 17:56:30
阅读次数:
129
Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.思路:尼玛,各种通不过,开始用纯减法,超时了。然后用递归,溢出了。再然后终于开窍...
分类:
其他好文 时间:
2015-02-06 23:13:53
阅读次数:
179
让div里面的多行文本垂直居中的方法:div{height:100px;width:100px;border:solid 1px red;text-align:center; display:table-cell;vertical-align:middle}下面是网上好不容易找的多种办法:看到问此问...
分类:
Web程序 时间:
2015-02-06 20:22:19
阅读次数:
274
时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven an increasing sequence S of N integers, themedianis the number at the middle position....
分类:
其他好文 时间:
2015-02-06 10:52:47
阅读次数:
149
Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m...
分类:
其他好文 时间:
2015-02-06 00:34:29
阅读次数:
207
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:
其他好文 时间:
2015-02-05 21:41:14
阅读次数:
160
网页中经常有一种三角形的图标,鼠标点一下会弹出一个下拉菜单之类的之前以为是个png图标背景,后来在bootstrap中看到有一个图标样式叫做caret的用来实现这种效果。没想到用CSS也能实现这个效果。看了下源码是这样的:.caret{
display:inline-block;
width:0;
height:0;
margin..
分类:
其他好文 时间:
2015-02-05 11:32:46
阅读次数:
3277
1、元素居中:指定宽度,然后margin auto 即可.middle{ max-width:400px; //width:400px;//当浏览器被缩小,宽度小于元素宽度时,元素会被遮挡,所以应用max-width,会自动缩小元素以适应浏览器大小。这点对手机浏览器很有用 marg...
分类:
Web程序 时间:
2015-02-04 00:37:07
阅读次数:
163