結果

問題 No.143 豆
ユーザー ldsybldsyb
提出日時 2016-05-20 08:22:58
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 23 ms / 1,000 ms
コード長 207 bytes
コンパイル時間 123 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 13,832 KB
最終ジャッジ日時 2023-09-30 16:45:36
合計ジャッジ時間 1,476 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
13,780 KB
testcase_01 AC 19 ms
11,816 KB
testcase_02 AC 18 ms
11,712 KB
testcase_03 AC 19 ms
13,832 KB
testcase_04 AC 19 ms
11,848 KB
testcase_05 AC 18 ms
11,624 KB
testcase_06 AC 19 ms
11,876 KB
testcase_07 AC 19 ms
11,720 KB
testcase_08 AC 19 ms
11,708 KB
testcase_09 AC 18 ms
11,744 KB
testcase_10 AC 18 ms
11,776 KB
testcase_11 AC 23 ms
11,672 KB
testcase_12 AC 19 ms
11,856 KB
testcase_13 AC 18 ms
11,632 KB
testcase_14 AC 18 ms
11,856 KB
testcase_15 AC 18 ms
11,888 KB
testcase_16 AC 19 ms
11,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define k (read))
(define n (read))
(define ans (* k n))
(define f (read))
(let loop((i f))
    (set! ans (- ans (read)))
    (if (> i 1) (loop (- i 1))))
(if (>= ans 0) (display ans) (display -1))
(newline)
0