結果

問題 No.2426 Select Plus or Minus
ユーザー 👑 loop0919
提出日時 2023-08-18 21:14:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 186 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 53,120 KB
最終ジャッジ日時 2024-11-28 05:11:12
合計ジャッジ時間 8,791 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 41
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

ops = ""

while N > 1:
    if N % 2 == 0:
        ops += "/"
        N //= 2
    else:
        ops += "+"
        N = 3 * N + 1
    print(N)

print(len(ops))
print(ops)
0