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

Re:变态代码,0MS,难理解~~~~~~~~

Posted by code_Piano at 2011-04-10 22:38:12 on Problem 1003
In Reply To:Re:变态代码,0MS,难理解~~~~~~~~ Posted by:anyexingchen at 2011-04-10 22:34:27
其实一点都不难理解,主要是那个 <1./++n>  其实那是<1.0/++n>的“简写”,如果用1除一个整数,结果会是0,但是用1.0去除一个整数,再赋值给一个浮点型,结果就是正确结果。

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