結果
| 問題 | No.887 Collatz |
| コンテスト | |
| ユーザー |
bellangeldindon
|
| 提出日時 | 2019-10-21 15:29:59 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 199 bytes |
| 記録 | |
| コンパイル時間 | 216 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-03-24 01:54:05 |
| 合計ジャッジ時間 | 2,669 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 WA * 1 |
ソースコード
N = int(input()) max = N now = N x = 0 for i in range(1, 401): if now % 2 == 0: now = now // 2 else: now = 3*now + 1 if now == 1: x = i break if max < now: max = now print(x) print(max)
bellangeldindon