結果
| 問題 | No.3631 Collatz conjecture |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-21 21:47:53 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 125 bytes |
| 記録 | |
| コンパイル時間 | 243 ms |
| コンパイル使用メモリ | 95,592 KB |
| 実行使用メモリ | 79,308 KB |
| 最終ジャッジ日時 | 2026-08-21 21:48:11 |
| 合計ジャッジ時間 | 5,875 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 52 WA * 1 |
ソースコード
N = int(input())
ans = 0
while N != 1:
if N%2 == 0:
N //= 2
else:
N = 3*N + 1
ans += 1
print(ans)