結果
| 問題 |
No.56 消費税
|
| コンテスト | |
| ユーザー |
kuramu
|
| 提出日時 | 2016-01-19 22:10:52 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 50 ms / 5,000 ms |
| コード長 | 540 bytes |
| コンパイル時間 | 2,038 ms |
| コンパイル使用メモリ | 74,172 KB |
| 実行使用メモリ | 50,396 KB |
| 最終ジャッジ日時 | 2024-07-18 03:04:00 |
| 合計ジャッジ時間 | 3,793 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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) {
BufferedReader stdReader =new BufferedReader(new InputStreamReader(System.in));
try {
String[] temps = stdReader.readLine().split(" ");
int money=Integer.parseInt(temps[0]);
int percent=Integer.parseInt(temps[1]);
System.out.println(money*(100+percent)/100);
} catch (IOException e) {
e.printStackTrace();
}
}
}
kuramu