結果
問題 | No.143 豆 |
ユーザー |
![]() |
提出日時 | 2017-09-04 10:44:53 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
AC
|
実行時間 | 26 ms / 1,000 ms |
コード長 | 197 bytes |
コンパイル時間 | 54 ms |
コンパイル使用メモリ | 6,944 KB |
実行使用メモリ | 16,128 KB |
最終ジャッジ日時 | 2024-07-23 10:49:31 |
合計ジャッジ時間 | 1,193 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 |
ソースコード
(define kn (* (read) (read))) (define f (read)) (define (readn n) (if (= n 0) '() (cons (read) (readn (- n 1)) ) )) (define sum (apply + (readn f))) (if (< kn sum) (print "-1") (print(- kn sum)))