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

两个坑点:一是计算中要用分为单位用int变量计算;二是输出的时候要保留两位小数精度

Posted by weiyx15 at 2018-04-10 23:03:33 on Problem 3639
两个坑点:
1. 计算中要用分为单位用int变量计算
2. 输出的时候要保留两位小数精度,例如这样就可以AC
ans0 = thecanada/100;
ans1 = thecanada%100;
printf("%d.%02d\n",ans0,ans1);

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