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

哪位打牛帮我赵赵错呀!怎么就wa了?

Posted by 00430030 at 2005-01-29 16:43:50 on Problem 1799
#include<stdio.h>
#include<math.h>
double f(int n)
{
	double s,t;
	s=3.14/n;
	t=sin(s);
    return t/(1+t);
}
void main()
{
	int a[100],i,n;
    double  b[100];
	scanf("%d",&n);
	for(i=1;i<=n;i++)
    scanf("%lf %d",&b[i],&a[i]);
	for(i=1;i<=n;i++)
	
		printf("Scenario #%d:\n%.3f\n\n\n",i,f(a[i])*b[i]);

	
	}




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