All submissions for this problem are available.
There are two circles of radius R on a coordinate system such that the center of first circle lies on (-R,0) and the center of second circle lies on (R,0). There exist two points on the coordinate system such that first point lies on the center of one circle and the other point can lie anywhere on the circumference of another circle with equal probability everywhere.
Find out the expected value of the distance between both the points.
Contains a single integer R - the radius of both circles.
Output a the integer part of the expected value of distance between those points.
The decimal part of the answer has to be dropped.
0 ≤ R ≤ 10^5
Input: 1 Output: 2
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
Fetching successful submissions