题目描述: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
题意:有一个半径为100的圆形蛋糕,蛋糕上有一些樱桃。现在妈妈要把蛋糕分两半,因为要均分给两人,所以肯定是从原点切出来的。然后还需要两半蛋糕各含一半数目的樱桃,而且所切的地方不会切到樱桃。求所切下的这条直线的方程,Ax+By=0 中的 A 和 B 的值。
cherry 樱桃;beeline 直线;coordinate 坐标
思路:可以看到大体的思路就是找到一条直线,使得所有樱桃的坐标满足 Ax...
分类:
其他好文 时间:
2015-02-07 00:36:46
阅读次数:
184
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
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
题目描述: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
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
化成反比函数求积分
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
题目: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
题目链接: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
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