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

贴个代码

Posted by PDFangeltop1 at 2011-07-01 21:36:36 on Problem 3737
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <fstream>
#include <math.h>

using namespace std;

int main()
{
    //freopen("in.txt","r",stdin);
    double s,pi=3.14159265;
    while(scanf("%lf",&s)!=EOF)
    {
        double r=sqrt(s/pi)/2;
        double h=sqrt(s*2/pi);
        double V=sqrt(s*s*s/(2*pi))/6;
        printf("%.2f\n",V);
        printf("%.2f\n",h);
        printf("%.2f\n",r);
    }
    return 0;
}

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