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 |
此题离散化根本用不着排序,浪费时间呢,看我的离散化while (i--) { scanf("%d%d",&poster[i].start,&poster[i].end); dismaping[poster[i].start-1] = dismaping[poster[i].end] = 2; } for (i = 1; i < 10000005; i++) { dismaping[i] += dismaping[i-1]; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator