結果
問題 | No.56 消費税 |
ユーザー |
![]() |
提出日時 | 2017-04-25 21:43:02 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 56 ms / 5,000 ms |
コード長 | 477 bytes |
コンパイル時間 | 2,003 ms |
コンパイル使用メモリ | 74,144 KB |
実行使用メモリ | 50,720 KB |
最終ジャッジ日時 | 2024-09-13 09:17:06 |
合計ジャッジ時間 | 4,507 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 23 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader =new BufferedReader(new InputStreamReader(System.in)); String[] inputs = reader.readLine().split(" "); long D = Long.parseLong(inputs[0]); double P = Double.parseDouble(inputs[1]); System.out.println((int) (D + (D * P)/100)); } }