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

BT题目卡精度无语啊无语 WA的可以看一下

Posted by yizer at 2009-06-08 16:11:23 on Problem 3639 and last updated at 2009-06-08 16:12:48
WA的童鞋可以参考一下这个输出
printf("%.2lf\n",(double)prey / 100.0);
会WA
写成
int fp = prey/100;
int bp = prey%100;
printf("%d.%02d\n",fp,bp);
就好了

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