結果

問題 No.56 消費税
ユーザー matsuyoshi30
提出日時 2016-02-04 02:04:26
言語 Java
(openjdk 23)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 254 bytes
コンパイル時間 2,121 ms
コンパイル使用メモリ 75,152 KB
実行使用メモリ 41,528 KB
最終ジャッジ日時 2024-07-18 03:06:00
合計ジャッジ時間 5,835 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Test {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);

		int D = in.nextInt();
		int P = in.nextInt();

		int ans = (int)Math.floor(D * (P + 100) / 100);

		System.out.println(ans);
	}
}
0