結果
問題 | No.56 消費税 |
ユーザー |
![]() |
提出日時 | 2016-06-08 09:41:45 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 125 ms / 5,000 ms |
コード長 | 364 bytes |
コンパイル時間 | 2,008 ms |
コンパイル使用メモリ | 73,940 KB |
実行使用メモリ | 54,216 KB |
最終ジャッジ日時 | 2024-07-18 03:13:52 |
合計ジャッジ時間 | 5,418 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 23 |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int price = scan.nextInt(); double tax_percent = scan.nextInt(); double tax_decimal = tax_percent / 100; double priceIncludeTax = price + price * tax_decimal; System.out.println((int)priceIncludeTax); scan.close(); } }