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 |
注意 本题有大坑2个!!(1)最基本的,起点l可能小于终点r (2)对于每一个区间,一定是从一个奇数号开始加到一个偶数号,即 if(l%2 == 0) l--; ///若l为偶数号,则从它的前一个(奇数)开始加 if(r%2 == 1) r++; ///若r为奇数号,则加到它的后一个(偶数) 为此贡献WA 1次 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator