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

我晕...难度用double不是这样做的? 但是double的精度不行..连sample3都过不了啊

Posted by qywyh_scut at 2006-05-05 15:25:00 on Problem 1131
		

i = 2;
t = 1;
ans = 0.0;
while (i < strlen(a))
{
	ans += double(a[i] - 48) / (pow(8.0, double(t)));
	i++;
	t++;
}

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