結果
問題 | No.56 消費税 |
ユーザー |
![]() |
提出日時 | 2015-12-07 17:15:27 |
言語 | Java (openjdk 23) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 507 bytes |
コンパイル時間 | 2,377 ms |
コンパイル使用メモリ | 74,608 KB |
実行使用メモリ | 50,436 KB |
最終ジャッジ日時 | 2024-07-18 03:00:39 |
合計ジャッジ時間 | 4,130 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 22 WA * 1 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader buff = new BufferedReader(new InputStreamReader(System.in)); try { String[] box = buff.readLine().split(" "); int price = Integer.parseInt(box[0]); int tax = Integer.parseInt(box[1]); System.out.println(price + (int)(price * (tax / 100d))); } catch (NumberFormatException e) { } catch (IOException e) { } } }