結果
問題 | No.143 豆 |
ユーザー | go_boardwalk |
提出日時 | 2017-03-31 14:06:49 |
言語 | Scheme (Gauche-0.9.14) |
結果 |
WA
|
実行時間 | - |
コード長 | 311 bytes |
コンパイル時間 | 28 ms |
コンパイル使用メモリ | 5,216 KB |
実行使用メモリ | 11,924 KB |
最終ジャッジ日時 | 2023-09-21 10:36:15 |
合計ジャッジ時間 | 1,142 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 15 ms
11,668 KB |
testcase_01 | AC | 15 ms
11,692 KB |
testcase_02 | AC | 15 ms
11,892 KB |
testcase_03 | AC | 17 ms
11,680 KB |
testcase_04 | AC | 16 ms
11,660 KB |
testcase_05 | AC | 17 ms
11,768 KB |
testcase_06 | AC | 17 ms
11,792 KB |
testcase_07 | AC | 15 ms
11,916 KB |
testcase_08 | AC | 16 ms
11,868 KB |
testcase_09 | WA | - |
testcase_10 | AC | 15 ms
11,880 KB |
testcase_11 | AC | 15 ms
11,924 KB |
testcase_12 | AC | 15 ms
11,888 KB |
testcase_13 | AC | 15 ms
11,908 KB |
testcase_14 | AC | 16 ms
11,712 KB |
testcase_15 | AC | 15 ms
11,672 KB |
testcase_16 | AC | 16 ms
11,864 KB |
ソースコード
(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)))