码迷,mamicode.com
首页 >  
搜索关键字:coordinate    ( 414个结果
LeetCode 011 Container With Most Water
题目描述:Container With Most WaterGivennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn s...
分类:其他好文   时间:2015-02-07 15:53:27    阅读次数:141
UVa 10167 生日蛋糕
题意:有一个半径为100的圆形蛋糕,蛋糕上有一些樱桃。现在妈妈要把蛋糕分两半,因为要均分给两人,所以肯定是从原点切出来的。然后还需要两半蛋糕各含一半数目的樱桃,而且所切的地方不会切到樱桃。求所切下的这条直线的方程,Ax+By=0 中的 A 和 B 的值。 cherry 樱桃;beeline 直线;coordinate 坐标 思路:可以看到大体的思路就是找到一条直线,使得所有樱桃的坐标满足 Ax...
分类:其他好文   时间:2015-02-07 00:36:46    阅读次数:184
[UIImageView]Bounds
boundsPropertyThe bounds rectangle, which describes the view’s location and size in its own coordinate system.bounds 矩形使用视图本身的坐标系统来的描述视图的位置和大小Declarat...
分类:其他好文   时间:2015-02-06 20:23:14    阅读次数:163
【leetcode】Container With Most Water(middle)
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
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 ...
分类:其他好文   时间:2015-02-05 10:56:24    阅读次数:173
Container With Most Water
https://oj.leetcode.com/problems/container-with-most-water/Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai...
分类:其他好文   时间:2015-02-03 20:55:30    阅读次数:132
Uva 11346 Probability 积分
化成反比函数求积分 G - Probability Time Limit: 1 sec  Memory Limit: 16MB Consider rectangular coordinate system and point L(X,Y) which is randomly chosen among all points in the area A whic...
分类:其他好文   时间:2015-01-29 22:34:11    阅读次数:236
leetcode.11---------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). ...
分类:其他好文   时间:2015-01-29 17:48:28    阅读次数:180
LeetCode --- 11. Container With Most Water
题目链接: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 ...
分类:其他好文   时间:2015-01-29 12:48:22    阅读次数:226
uva 10167 Birthday Cake(暴力/枚举)
uva 10167 Birthday Cake Background Lucy and Lily are twins. Today is their birthday. Mother buys a birthday cake for them.Now we put the cake onto a Descartes coordinate. Its center is at (0...
分类:其他好文   时间:2015-01-23 16:27:45    阅读次数:189
414条   上一页 1 ... 31 32 33 34 35 ... 42 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!