結果
問題 |
No.887 Collatz
|
ユーザー |
|
提出日時 | 2022-05-07 10:44:37 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 211 bytes |
コンパイル時間 | 238 ms |
コンパイル使用メモリ | 81,900 KB |
実行使用メモリ | 60,128 KB |
最終ジャッジ日時 | 2024-07-06 14:39:18 |
合計ジャッジ時間 | 2,567 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 WA * 2 |
ソースコード
n0 = int(input()) m = n0 first = -1 for i in range(10**5): 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)