Hangzhou (Hangzhou), 2002 20:48:02

Source: Internet
Author: User
Ball Size Calculation

Time Limit: 2000/1000 MS (Java/others) memory limit: 65536/32768 K (Java/Others)
Total submission (s): 81599 accepted submission (s): 33601


The Problem description calculates the volume of the Ball Based on the input radius value.

 

There are multiple groups of input data. Each group occupies one row. Each row contains a real number, indicating the radius of the ball.

 

The size of the ball corresponding to the output. For each group of input data, a row is output, and the calculation result is kept in three decimal places.

 

Sample input11.5

 

Sample output4.18914.133 Hint# Define PI 3.1415927
1 # include <cstdio> 2 # define PI 3.1415927 3 int main () 4 {5 double r; 6 While (scanf ("% lf", & R) = 1) 7 {8 printf ("%. 3lf \ n ", pI * r * 4/3); 9} 10 return 0; 11}

 

Hangzhou (Hangzhou), 2002 20:48:02

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.