結果

問題 No.56 消費税
ユーザー TwinkleStar74TwinkleStar74
提出日時 2017-09-13 16:07:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 116 ms / 5,000 ms
コード長 288 bytes
コンパイル時間 2,145 ms
コンパイル使用メモリ 74,280 KB
実行使用メモリ 41,448 KB
最終ジャッジ日時 2024-04-25 09:17:05
合計ジャッジ時間 5,789 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 106 ms
40,952 KB
testcase_01 AC 107 ms
41,300 KB
testcase_02 AC 110 ms
41,448 KB
testcase_03 AC 98 ms
40,240 KB
testcase_04 AC 99 ms
40,008 KB
testcase_05 AC 95 ms
40,592 KB
testcase_06 AC 109 ms
41,064 KB
testcase_07 AC 100 ms
40,096 KB
testcase_08 AC 102 ms
40,256 KB
testcase_09 AC 106 ms
41,216 KB
testcase_10 AC 98 ms
39,960 KB
testcase_11 AC 107 ms
40,780 KB
testcase_12 AC 106 ms
41,132 KB
testcase_13 AC 97 ms
40,252 KB
testcase_14 AC 106 ms
41,260 KB
testcase_15 AC 106 ms
41,164 KB
testcase_16 AC 107 ms
41,384 KB
testcase_17 AC 96 ms
39,944 KB
testcase_18 AC 116 ms
41,216 KB
testcase_19 AC 110 ms
41,416 KB
testcase_20 AC 107 ms
41,200 KB
testcase_21 AC 106 ms
41,172 KB
testcase_22 AC 92 ms
39,948 KB
testcase_23 AC 107 ms
41,136 KB
testcase_24 AC 90 ms
39,712 KB
testcase_25 AC 106 ms
40,960 KB
testcase_26 AC 105 ms
40,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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