結果
| 問題 | No.3631 Collatz conjecture |
| コンテスト | |
| ユーザー |
triangle_coder
|
| 提出日時 | 2026-08-21 21:31:42 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 130 bytes |
| 記録 | |
| コンパイル時間 | 331 ms |
| コンパイル使用メモリ | 21,408 KB |
| 実行使用メモリ | 16,000 KB |
| 最終ジャッジ日時 | 2026-08-21 21:32:03 |
| 合計ジャッジ時間 | 7,873 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 52 WA * 1 |
ソースコード
a = int(input())
ans = 0
while a != 1:
if a%2 == 0:
a = a/2
else:
a = 3*a+1
ans = ans+1
print(ans)
triangle_coder