結果
| 問題 | No.3631 Collatz conjecture |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-21 22:06:22 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 109 bytes |
| 記録 | |
| コンパイル時間 | 225 ms |
| コンパイル使用メモリ | 95,980 KB |
| 実行使用メモリ | 79,104 KB |
| 最終ジャッジ日時 | 2026-08-21 22:06:30 |
| 合計ジャッジ時間 | 5,691 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_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 = N * 3 + 1 ans += 1 print(ans)