結果

問題 No.56 消費税
ユーザー ちよちゃん
提出日時 2016-05-20 16:35:22
言語 Java
(openjdk 23)
結果
AC  
実行時間 132 ms / 5,000 ms
コード長 365 bytes
コンパイル時間 2,922 ms
コンパイル使用メモリ 73,928 KB
実行使用メモリ 41,592 KB
最終ジャッジ日時 2024-07-18 03:13:09
合計ジャッジ時間 7,007 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

/*
 * NO.56 消費税
 */
public class Yuki4 {
	
	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int d = scan.nextInt();
		int p = scan.nextInt();
		scan.close();
		// int answer = (int) (d +(d)*(0.01*p));
		int answer = d + ( d * p / 100);
		
		System.out.println(answer);
	}
}
0