Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

这样就给A了,见下面mid在两边都取,线段树得开到5倍来

Posted by yuanchuanshun at 2010-09-26 20:56:41 on Problem 1151
/*1151 Accepted 232K 0MS C++ 1864B 2010-09-26 20:53:30 */ 
//hdu能AC 在北大给WA了  看了DIs说要把
//静态线段树开到987,我便把 800改到 1200,居然给A了 
//联系到hdu里开到800才A,对线段树的领悟得多些,这里的代码是mid在两边都取,
//那么二分下去树的高度可想而知,并非以前的三倍那么简单;;学习了; 

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator