Competitive Programming Solutions

GitHub
back to dashboard

E. Area of a Circle

Codeforces - Sheet #1 (Data type - Conditions) · limit: 1s · memory: 256MB · view on codeforces

input

2.00

output

12.566370612
Main.java
static void solve() {

        // Write your solution here
        final double pi= 3.141592653;
        double r = in.nextDouble();
        out.format("%.9f%n", pi*r*r);

    }