結果

問題 No.56 消費税
ユーザー cheeeese
提出日時 2021-06-28 12:18:34
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 424 bytes
コンパイル時間 2,574 ms
コンパイル使用メモリ 74,184 KB
実行使用メモリ 56,364 KB
最終ジャッジ日時 2024-06-25 12:08:23
合計ジャッジ時間 6,549 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 3
other AC * 6 WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.lang.*;
import java.io.*;

public class Main {
	public static void main (String[] args) {
		Scanner scan = new Scanner(System.in);
		int D = scan.nextInt();
		int P = scan.nextInt();

		if(D < 1 || D > Math.pow(10, 7) || P < 0 || P > 100) {
			System.out.println("Please input D between 1 and 10000000, and input P between 0 and 100");
		} else {
			System.out.println(D*(1+P/100));
		}
	}
}
0