結果

問題 No.143 豆
ユーザー go_boardwalkgo_boardwalk
提出日時 2017-03-31 14:24:24
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 21 ms / 1,000 ms
コード長 234 bytes
コンパイル時間 131 ms
コンパイル使用メモリ 5,280 KB
実行使用メモリ 13,740 KB
最終ジャッジ日時 2023-09-30 16:58:57
合計ジャッジ時間 1,232 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
11,696 KB
testcase_01 AC 19 ms
11,704 KB
testcase_02 AC 19 ms
11,628 KB
testcase_03 AC 19 ms
11,712 KB
testcase_04 AC 19 ms
11,644 KB
testcase_05 AC 18 ms
11,652 KB
testcase_06 AC 18 ms
11,648 KB
testcase_07 AC 19 ms
11,776 KB
testcase_08 AC 18 ms
11,632 KB
testcase_09 AC 18 ms
11,816 KB
testcase_10 AC 18 ms
11,720 KB
testcase_11 AC 19 ms
11,704 KB
testcase_12 AC 19 ms
11,716 KB
testcase_13 AC 19 ms
11,740 KB
testcase_14 AC 19 ms
13,740 KB
testcase_15 AC 19 ms
11,756 KB
testcase_16 AC 18 ms
11,840 KB
権限があれば一括ダウンロードができます

ソースコード

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