結果

問題 No.143 豆
ユーザー go_boardwalk
提出日時 2017-03-31 14:24:24
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 25 ms / 1,000 ms
コード長 234 bytes
コンパイル時間 128 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 16,128 KB
最終ジャッジ日時 2024-07-23 10:43:21
合計ジャッジ時間 1,172 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

(define nu (map string->number (string-split (read-line) " ")))
(define ns (fold + 0 (map string->number (string-split (read-line) " "))))

(print ((lambda (b f) (if (>= b f)(- b f) -1))
       (* (list-ref nu 0) (list-ref nu 1)) ns))
0