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 |
我推得有点相似和上面的..In Reply To:给个公式 可能有用 0MS算法 Posted by:i_love_c at 2007-02-23 08:00:49 t = (int)sqrt(x); result = 2 *t -1 ; x -= t *t ; if(x - > t ) result += 2 ; els if(x >0 ) result += 1 ; Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator