题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1541StarsDescriptionAstronomers often examine star maps where stars are represented by points on a plane...
分类:
其他好文 时间:
2015-06-24 22:29:05
阅读次数:
127
同swustoj 169Interior Points of Lattice PolygonsTime Limit:1000MSMemory Limit:65536KTotal Submissions:229Accepted:152DescriptionAlattice pointis a poin...
分类:
其他好文 时间:
2015-06-24 18:22:20
阅读次数:
124
// CGPoint 结构体数据原型, 用于声明一个点; 02./* Points. */ 03.? 04.struct CGPoint { 05.CGFloat x; 06.CGFloat y; 07.}; 08.typedef struct CGPoint CGPoint; 09.? 10.typedef CGPoint NSPoint; 11.? ...
分类:
其他好文 时间:
2015-06-24 11:08:30
阅读次数:
133
key points:1 conversion between different types2 overflow 会有比较多corner cases需要考虑3 iterationrelated questions:Median of Two Sorted ArraysReverse Integer...
分类:
其他好文 时间:
2015-06-23 06:15:12
阅读次数:
150
Description
Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amount of the stars that are ...
分类:
编程语言 时间:
2015-06-21 18:34:37
阅读次数:
142
收到开发提交的一条SQL,在高并发下较慢,看能否做一些优化:
该SQL是1个表对另一个表做Left join,首先执行下看看,
SQL> select l.vcno,opttype,add_points,optdate,remark,memid,id,FAMILYID,create_Username,billno,billtype,billsubcase,reduce_Points, l.ad...
分类:
数据库 时间:
2015-06-21 02:07:15
阅读次数:
170
3053: The Closest M Points
Time Limit: 10 Sec Memory Limit: 128 MB
Submit: 442 Solved: 173
[Submit][Status][Discuss]
Description
The course of Software Design and Development Practice is obje...
分类:
其他好文 时间:
2015-06-19 01:32:46
阅读次数:
317
同p2626。由于K比较小,所以不必用堆。#include#include#include#includeusing namespace std;typedef double db;#define N 50001#define INF 2147483647.0#define KD 5//ά¶ÈÊý...
分类:
其他好文 时间:
2015-06-18 23:35:16
阅读次数:
155
This one is marked as "Advanced".. i don't tink so, not that hard if you can visualize all the bits from a to b. Two key points here:1. Say both a and...
分类:
其他好文 时间:
2015-06-18 11:24:22
阅读次数:
104
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.强行解:inline bool valueSame(double a, double b) { re...
分类:
其他好文 时间:
2015-06-16 12:27:10
阅读次数:
86