結果
| 問題 | No.2534 コラッツ数列 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-18 19:53:17 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 133 bytes |
| 記録 | |
| コンパイル時間 | 308 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2024-09-26 05:54:32 |
| 合計ジャッジ時間 | 2,925 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 22 |
ソースコード
n=int(input())
for i in range(1,51):
if n==1:
print("Yes")
print(i-1)
exit()
if n%2==0:
n//=2
else:
n=3*n+1
print("No")