結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-02 19:56:11 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 234 bytes |
| 記録 | |
| コンパイル時間 | 64 ms |
| コンパイル使用メモリ | 6,528 KB |
| 実行使用メモリ | 17,536 KB |
| 最終ジャッジ日時 | 2026-05-26 14:53:52 |
| 合計ジャッジ時間 | 2,278 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 RE * 10 |
ソースコード
(define (solve l arr)
(define top (car arr))
(if (< l top)
0
(+ 1 (solve (- l top) (cdr arr)))))
(let* ((l (read))
(n (read))
(arr (map (lambda (_) (read))
(iota n))))
(print (solve l (sort arr))))