Competitive Programming Solutions

GitHub
back to dashboard

A. Winter Sale

Codeforces - Contest #1 · limit: 1s · memory: 256MB · view on codeforces

input

20 80

output

100.00
Main.java
static void solve() {

        // Write your solution here\
        int x = in.nextInt();
        int p = in.nextInt();
        out.printf("%.2f", (double)(p * 100 )/(100.0 - x));

    }