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