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
|
g4mewarrior:
2016-06-21 07:52:03
The best question for Parsing
|
|
vineetpratik:
2016-06-18 14:06:41
solved in c++ :) Happy parsing
|
|
priyank:
2016-03-31 18:58:23
nice question |
|
ATUL KUMAR SINGH:
2016-03-02 09:02:17
AC e is dangerous than any other letter
|
|
codefather1:
2016-02-15 17:52:26
give more testcases
|
|
wano:
2016-02-15 06:09:26
Please check solution ID 16284664. I believe it is giving correct output but is shows WA. |
|
Arnab Animesh Das:
2016-02-13 22:03:36
If you guys want to learn something from this problem, try doing this in C/C++ |
|
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!!
|
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: | .... |