結果

問題 No.5 数字のブロック
ユーザー MiyamonY
提出日時 2019-09-02 19:56:11
言語 Scheme
(Gauche-0.9.15)
結果
RE  
実行時間 -
コード長 234 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 17,408 KB
最終ジャッジ日時 2024-12-16 11:13:48
合計ジャッジ時間 2,651 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24 RE * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

(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))))
0