Subscribed unsubscribe Subscribe Subscribe

yukicoder No.56 消費税

Problem

No.56 消費税 - yukicoder

Code

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader reader =new BufferedReader(new InputStreamReader(System.in));
        String[] inputs = reader.readLine().split(" ");
        long D = Long.parseLong(inputs[0]);
        double P = Double.parseDouble(inputs[1]);

        System.out.println((int) (D + (D * P)/100));
    }

}
Remove all ads