結果

問題 No.143 豆
コンテスト
ユーザー go_boardwalk
提出日時 2017-03-31 14:06:49
言語 Scheme
(Gauche-0.9.15)
コンパイル:
true
実行:
gosh _filename_
結果
WA  
実行時間 -
コード長 311 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3 ms
コンパイル使用メモリ 5,888 KB
実行使用メモリ 16,384 KB
最終ジャッジ日時 2026-08-10 18:33:28
合計ジャッジ時間 1,957 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

(define nu (read-line))
(define ns (read-line))
(print (let ((b (* (list-ref (map string->number (string-split nu " ")) 0)
                   (list-ref (map string->number (string-split nu " ")) 1)))
             (f (fold + 0 (map string->number (string-split ns " ")))))
  (if (> b f)
      (- b f)
      -1)))
0