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 |
Re:当k>n/2的时候取k=n-kIn Reply To:当k>n/2的时候取k=n-k Posted by:frkstyc at 2005-04-24 12:12:20 嗯,这个要注意,不然它给出 k = n-1 的情况就挂了。 另外计算过程的临时变量使用 __int64, 就不会在计算中溢出了。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator