結果
| 問題 |
No.56 消費税
|
| ユーザー |
|
| 提出日時 | 2022-07-22 16:48:53 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 120 ms / 5,000 ms |
| コード長 | 278 bytes |
| コンパイル時間 | 2,035 ms |
| コンパイル使用メモリ | 73,748 KB |
| 実行使用メモリ | 41,536 KB |
| 最終ジャッジ日時 | 2024-07-04 00:25:08 |
| 合計ジャッジ時間 | 5,711 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int price = sc.nextInt();
int tax = sc.nextInt();
int r = price * (100 + tax) / 100;
System.out.println(r);
}
}