結果

問題 No.56 消費税
ユーザー nullnull
提出日時 2021-04-21 15:47:24
言語 Java
(openjdk 23)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 297 bytes
コンパイル時間 1,893 ms
コンパイル使用メモリ 74,188 KB
実行使用メモリ 41,572 KB
最終ジャッジ日時 2024-07-04 06:01:17
合計ジャッジ時間 6,052 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int cost = scan.nextInt();
        int tax = scan.nextInt();
        int result;
        result=cost*(100+tax);
        System.out.println(result/100);
    }
}
0