Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
他妈的测试数据太弱了,O(n^2)居然都可以过!!!In Reply To:Re:这个题好象没有人问~不好意思,能不能给个提示! Posted by:atlas_of_rruucc at 2004-09-12 22:56:23 > 这样是比较慢 > 可以考虑先把点按Y值从大到小排序 > 然后从大到小扫描一边 > 扫描时如果该点X值大于之前X的最大值答案就加1 > Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator