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

终于AC了

Posted by atyuwen at 2008-10-21 12:01:10 on Problem 1117
总想省着点用__int64,
于是把 
(10*n+t)/11
处理成 
static_cast<int>(10*(n/11.0f)+(t/11.0f)+0.5f) 
虽然官方的测试数据都过了,却老是WA. 
改成 (10*(__int64)(n)+t)/11就AC了.


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