CORN - Corn Headache
Once Jhon wanted to eat corn but the shopkeeper has many corns of different sizes having same price.
Jhon wants the bigger corn but When he observes all corns he found that many small size corns have more seeds than bigger one so he needs your help in choosing the corn.
As the corn shape is almost like cone and You are good in mathematics (assume you are :P) Jhon wants you to select the corn for him and tell him the total number of seeds on this corn.
Input
First line of input is 't' - number of test cases. In each of the next t lines There are three numbers, R - radius of the biggest part of corn, and S - The number of seeds in corn per cm2, and H - the height of the corn. This is in the following form:
ReSeH
R, S, H < 1000 and Pi = 3.1415
Output
Only one integer, the number of seeds on each corn.
Example
Input: 1 2e4e20 Output: 506
hide comments
azam_9:
2016-02-13 17:00:08
Simple maths....easy but awesome. Question.....(y)
|
|
mehmetin:
2016-02-11 14:07:42
Nice parsing problem!
|
|
abhi2296:
2016-02-11 13:34:02
More test cases Please!!
|
|
farhan764:
2016-02-11 08:33:56
[SPOILER ... :( ] Last edit: 2016-03-31 20:59:32 |
|
gaurav_c0de:
2016-02-10 21:57:56
how i input 2e4e20
|
|
farhan764:
2016-02-10 19:08:22
classical problem.......@lalit
|
|
Shubham Dash:
2016-02-10 16:40:40
@lalit_nit:classical
|
|
lalit_nit:
2016-02-10 13:39:49
Comment Please....is it Tutorial thing or classical?.. |
Added by: | Losser |
Date: | 2016-02-10 |
Time limit: | 0.100s-1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 CSHARP GO GOSU JAVA JS-RHINO JS-MONKEY NICE PHP PYTHON PYPY PYTHON3 PY_NBC RUBY SCALA CHICKEN |
Resource: | .... |