poj 1860 Currency ExchangeDescription
Several currency exchange points are working in our city. Let us suppose that each point specializes in two particular currencies and performs exchange operations...
分类:
其他好文 时间:
2015-07-26 11:12:33
阅读次数:
175
The points P (x1, y1) and Q (x2, y2) are plotted at integer co-ordinates and are joined to the origin,
O(0,0), to form ΔOPQ.
There are exactly fourteen triangles containing a right angle that...
分类:
其他好文 时间:
2015-07-26 00:35:30
阅读次数:
384
Currency ExchangeTime Limit:1000MSMemory Limit:30000KTotal Submissions:22405Accepted:8095DescriptionSeveral currency exchange points are working in ou...
分类:
其他好文 时间:
2015-07-26 00:23:45
阅读次数:
114
题目链接:http://www.lightoj.com/volume_showproblem.php?problem=1088题意: 有一维的n个点和q条线段。询问每条线段上的点有多少个;思路:寻找这些点中对于每条线段的上下界即可。代码:#include
#include
#include
#include
#include...
分类:
其他好文 时间:
2015-07-24 22:46:46
阅读次数:
110
UVA 10869 - Brownie Points II题目链接题意:平面上n个点,两个人,第一个人先选一条经过点的垂直x轴的线。然后还有一个人在这条线上穿过的点选一点作垂直该直线的线,然后划分出4个象限,第一个人得到分数为1。3象限,第二个人为二四象限。问第一个个人按最优取法,能得到最小分数的最...
分类:
其他好文 时间:
2015-07-24 17:53:33
阅读次数:
109
Problem DescriptionRecently Rikka falls in love with an old but interesting game -- 24 points. She wants to become a master of this game, so she asks ...
分类:
其他好文 时间:
2015-07-24 17:28:18
阅读次数:
124
Array.prototype.sort() 方法一般用来对数组中的元素进行排序,既可以对数字排序,也可以对字符串进行排序。如果没有指定比较函数,会根据数组中字符的Unicode编码来进行排序。这对于字符串排序,没有问题,但是对于数字的排序就会出现错误。 var points = [ 'ban...
分类:
编程语言 时间:
2015-07-22 20:17:29
阅读次数:
148
题意:有很多区间,找出目标区间不跟任何其他区间重叠的部分的长度
分析:
觉得很简单的题,但是脑子没转过弯了,一直没对。
思路就是用一个vis[]数组记录这个点是否被其他区间用了,但是不知道怎么了,我一直固执的要记录两个端点,结果,当然怎么都不对,因为要求的是区间的长度,跟点的个数不是一致的,而且最致命的就是这种方法会错过这样的区间:比如被别人占有的区间是(1,2),(3,4) 则目标区间还...
分类:
其他好文 时间:
2015-07-22 10:53:55
阅读次数:
99
【独立开发者er Cocos2d-x实战 011】Cocos2dx 3.x命令行生成APK详解...
分类:
其他好文 时间:
2015-07-21 12:47:15
阅读次数:
146
很多人在用Android Studio的时候会出现“'tools.jar' seems to be not in Android Studio classpath.Please ensure JAVA_HOME points to JDK rather than JRE.”出现这个错误的时候大部分情况是环境配置有问题,可以参考百度经验里面的解决方案。而我遇到的原因是tools.jar文件丢失。...
分类:
移动开发 时间:
2015-07-19 13:25:42
阅读次数:
147