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:大家都试试这个数据In Reply To:Re:大家都试试这个数据 Posted by:temp_ptr at 2011-10-06 15:46:05 > (Note that due to rounding the calculated probability for display, a probability of 0.5000 may appear after the Bet for. or Bet against. message.) > 这句话是什么意思?为啥会出现Bet for. 0.5000这种情况? 自己顶,原来要这么写才能AC: double ans = 0.8965423212354; int test = (int)(ans*10000+0.5); if(ans > 0.5) printf xxxx, test/10000.0f else if(ans < 0.5) printf xxxx, test/10000.0f else printf xxxx, test/10000.0f Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator