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

help me .where is wrong?

Posted by 405686697 at 2008-07-30 12:37:42 on Problem 1045
#include<iostream>
#include<math.h>
using namespace std;

int main()
{
    float Vs,R,C; int n,i,j;
    double w,t;
    double V1,V2,VR;
  
    cin>>Vs>>R>>C>>n;

    for(i=0;i<n;i++)
    {
        cin>>w;
        VR=Vs/sqrt(R*R+1/(w*w*C*C))*R;
 
    
        cout<<VR;
        cout<<endl;
    
    
     }
    
 
    return 1;
}

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