結果

問題 No.56 消費税
ユーザー hippolover02
提出日時 2022-07-22 16:42:05
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 267 bytes
コンパイル時間 1,847 ms
コンパイル使用メモリ 74,140 KB
実行使用メモリ 55,972 KB
最終ジャッジ日時 2024-07-04 00:17:33
合計ジャッジ時間 5,798 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 4
other WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int price = sc.nextInt();
        int tax = (100 + sc.nextInt()) / 100;
        System.out.println(price + price * tax);
    }
}
0