結果
問題 |
No.44 DPなすごろく
|
ユーザー |
![]() |
提出日時 | 2017-09-08 12:11:37 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
AC
|
実行時間 | 26 ms / 5,000 ms |
コード長 | 159 bytes |
コンパイル時間 | 54 ms |
コンパイル使用メモリ | 5,248 KB |
実行使用メモリ | 16,128 KB |
最終ジャッジ日時 | 2024-11-07 04:57:36 |
合計ジャッジ時間 | 1,418 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
(define n (read)) (define lis (cons 1 '(1) )) (define (ans lisx n) (if (= n 1)lisx(ans (cons (+(cadr lisx)(car lisx)) lisx) (- n 1)))) (print (car(ans lis n)))