結果

問題 No.143 豆
ユーザー ldsyb
提出日時 2016-05-20 08:22:58
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 24 ms / 1,000 ms
コード長 207 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 16,128 KB
最終ジャッジ日時 2024-07-23 10:30:26
合計ジャッジ時間 1,557 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

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