結果
| 問題 |
No.887 Collatz
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-07 22:11:49 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 94 bytes |
| コンパイル時間 | 39 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,160 KB |
| 最終ジャッジ日時 | 2024-10-15 14:29:44 |
| 合計ジャッジ時間 | 3,914 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 22 WA * 6 |
コンパイルメッセージ
Main.rb:10: warning: `*' interpreted as argument prefix Syntax OK
ソースコード
n=gets.to_i a=[] while n>1 if n%2==0 a<<n=n/2 else a<<n=3*n+1 end end p *[a.size,a.max]