結果

問題 No.56 消費税
ユーザー nohopennohopen
提出日時 2019-02-11 16:04:38
言語 Scheme
(Gauche-0.9.13)
結果
AC  
実行時間 22 ms / 5,000 ms
コード長 144 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 5,228 KB
実行使用メモリ 13,824 KB
最終ジャッジ日時 2023-09-25 15:21:34
合計ジャッジ時間 2,190 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,704 KB
testcase_01 AC 18 ms
11,628 KB
testcase_02 AC 17 ms
11,664 KB
testcase_03 AC 18 ms
11,644 KB
testcase_04 AC 18 ms
11,828 KB
testcase_05 AC 17 ms
11,760 KB
testcase_06 AC 22 ms
11,640 KB
testcase_07 AC 18 ms
13,824 KB
testcase_08 AC 17 ms
11,644 KB
testcase_09 AC 17 ms
11,644 KB
testcase_10 AC 18 ms
11,660 KB
testcase_11 AC 18 ms
11,640 KB
testcase_12 AC 18 ms
11,660 KB
testcase_13 AC 18 ms
11,744 KB
testcase_14 AC 18 ms
11,880 KB
testcase_15 AC 17 ms
11,640 KB
testcase_16 AC 17 ms
11,652 KB
testcase_17 AC 17 ms
11,628 KB
testcase_18 AC 18 ms
11,752 KB
testcase_19 AC 17 ms
11,656 KB
testcase_20 AC 18 ms
11,636 KB
testcase_21 AC 18 ms
11,880 KB
testcase_22 AC 18 ms
11,884 KB
testcase_23 AC 17 ms
11,676 KB
testcase_24 AC 18 ms
11,688 KB
testcase_25 AC 17 ms
11,724 KB
testcase_26 AC 18 ms
11,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (amount D P)
  (floor (* D (+ 1 (/ P 100)))))

(define (main args)
  (let* ((D (read))
         (P (read)))
    (print (amount D P))) 0)
0