結果
問題 |
No.887 Collatz
|
ユーザー |
|
提出日時 | 2022-05-07 10:45:26 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 211 bytes |
コンパイル時間 | 322 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 59,264 KB |
最終ジャッジ日時 | 2024-07-06 14:40:03 |
合計ジャッジ時間 | 2,432 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 WA * 2 |
ソースコード
n0 = int(input()) m = n0 first = -1 for i in range(10**6): if n0 == 1 and first == -1: first = i if n0%2: n0 = n0*3+1 else: n0 = n0//2 m = max(m,n0) print(first) print(m)