結果

問題 No.56 消費税
ユーザー t8m8⛄️t8m8⛄️
提出日時 2015-04-03 03:33:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 720 bytes
コンパイル時間 3,633 ms
コンパイル使用メモリ 73,136 KB
実行使用メモリ 42,628 KB
最終ジャッジ日時 2023-09-25 01:48:31
合計ジャッジ時間 8,125 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
42,628 KB
testcase_01 AC 118 ms
39,560 KB
testcase_02 AC 117 ms
39,644 KB
testcase_03 AC 119 ms
39,348 KB
testcase_04 AC 121 ms
39,416 KB
testcase_05 AC 123 ms
39,332 KB
testcase_06 AC 119 ms
39,684 KB
testcase_07 AC 119 ms
39,404 KB
testcase_08 AC 121 ms
39,480 KB
testcase_09 AC 120 ms
39,868 KB
testcase_10 AC 126 ms
39,196 KB
testcase_11 AC 124 ms
39,280 KB
testcase_12 AC 121 ms
39,852 KB
testcase_13 AC 122 ms
39,768 KB
testcase_14 AC 123 ms
39,364 KB
testcase_15 AC 123 ms
40,132 KB
testcase_16 AC 123 ms
39,452 KB
testcase_17 AC 121 ms
39,756 KB
testcase_18 AC 122 ms
39,300 KB
testcase_19 AC 123 ms
39,424 KB
testcase_20 AC 119 ms
39,480 KB
testcase_21 AC 118 ms
39,408 KB
testcase_22 AC 124 ms
39,808 KB
testcase_23 AC 124 ms
39,680 KB
testcase_24 AC 122 ms
39,440 KB
testcase_25 AC 123 ms
39,376 KB
testcase_26 AC 119 ms
39,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

//No.56 消費税

import java.util.*;
import java.io.*;
import static java.util.Arrays.*;
import static java.lang.Math.*;

public class No56 {
    
    static final Scanner sc = new Scanner(System.in);
    static final PrintWriter out = new PrintWriter(System.out,false);

    static void solve() {
        int d = sc.nextInt();
        int p = sc.nextInt();
        out.println((d+d*p/100));
    }

    public static void main(String[] args) {
        long start = System.currentTimeMillis();

        solve();
        out.flush();

        long end = System.currentTimeMillis();
        //trace(end-start + "ms");
        sc.close();
    }

    static void trace(Object... o) { System.out.println(deepToString(o));}
}
0