結果

問題 No.56 消費税
ユーザー S1ho
提出日時 2017-02-19 15:34:04
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 349 bytes
コンパイル時間 3,574 ms
コンパイル使用メモリ 74,804 KB
実行使用メモリ 54,392 KB
最終ジャッジ日時 2024-12-30 05:08:58
合計ジャッジ時間 8,539 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 19 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Tax {

    public static void main(String[] args) {
        
        Scanner scanner = new Scanner(System.in);
        
        int d = scanner.nextInt();
        int p = scanner.nextInt();
        
        float sum = d + d * (p / 100.0f);
        
        System.out.println((int)sum);
        
    }
    
}
0