結果
問題 |
No.887 Collatz
|
ユーザー |
|
提出日時 | 2024-09-17 16:14:25 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 241 bytes |
コンパイル時間 | 20 ms |
コンパイル使用メモリ | 6,688 KB |
実行使用メモリ | 16,512 KB |
最終ジャッジ日時 | 2024-09-17 16:14:27 |
合計ジャッジ時間 | 1,579 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 RE * 1 |
ソースコード
(use scheme.list) (define yuki887 (let* ((collatz (unfold (^x (= 1 x)) identity (^x (if (even? x) (quotient x 2) (+ (* x 3) 1))) (read)))) (display (length collatz)) (newline) (display (apply max collatz)) (newline)))