結果

問題 No.56 消費税
ユーザー papipenpapipen
提出日時 2017-03-26 01:20:14
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 258 bytes
コンパイル時間 2,039 ms
コンパイル使用メモリ 71,028 KB
実行使用メモリ 57,884 KB
最終ジャッジ日時 2023-09-20 10:50:37
合計ジャッジ時間 6,241 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,056 KB
testcase_01 AC 117 ms
56,112 KB
testcase_02 AC 119 ms
55,820 KB
testcase_03 WA -
testcase_04 AC 121 ms
55,868 KB
testcase_05 AC 118 ms
56,020 KB
testcase_06 AC 117 ms
55,596 KB
testcase_07 AC 118 ms
55,848 KB
testcase_08 AC 118 ms
56,116 KB
testcase_09 AC 117 ms
55,884 KB
testcase_10 AC 115 ms
55,768 KB
testcase_11 AC 120 ms
55,856 KB
testcase_12 AC 119 ms
55,728 KB
testcase_13 AC 117 ms
55,976 KB
testcase_14 AC 119 ms
56,276 KB
testcase_15 AC 119 ms
54,420 KB
testcase_16 AC 117 ms
55,880 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class Syohizei{
  public static void main(String args[]){
    Scanner s = new Scanner(System.in);
    int D = s.nextInt();
    int P = s.nextInt();
    int result = (int) (D * (P / 100.0 + 1));
    System.out.println(result);
  }
}
0