結果

問題 No.2426 Select Plus or Minus
ユーザー noriocnorioc
提出日時 2023-08-18 22:54:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 212 bytes
コンパイル時間 1,107 ms
コンパイル使用メモリ 86,868 KB
実行使用メモリ 71,472 KB
最終ジャッジ日時 2023-08-18 22:54:55
合計ジャッジ時間 7,505 ms
ジャッジサーバーID
(参考情報)
judge15 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,136 KB
testcase_01 AC 69 ms
71,292 KB
testcase_02 AC 71 ms
71,300 KB
testcase_03 AC 67 ms
71,304 KB
testcase_04 AC 66 ms
71,328 KB
testcase_05 WA -
testcase_06 AC 74 ms
71,124 KB
testcase_07 AC 66 ms
71,320 KB
testcase_08 AC 71 ms
71,120 KB
testcase_09 AC 68 ms
71,116 KB
testcase_10 AC 63 ms
71,300 KB
testcase_11 AC 64 ms
71,228 KB
testcase_12 AC 62 ms
71,324 KB
testcase_13 AC 68 ms
71,400 KB
testcase_14 AC 66 ms
71,380 KB
testcase_15 AC 66 ms
71,224 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 69 ms
70,924 KB
testcase_20 AC 66 ms
71,420 KB
testcase_21 AC 69 ms
71,028 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 74 ms
71,124 KB
testcase_25 AC 64 ms
71,292 KB
testcase_26 AC 67 ms
71,232 KB
testcase_27 AC 65 ms
71,080 KB
testcase_28 AC 64 ms
71,452 KB
testcase_29 AC 66 ms
71,184 KB
testcase_30 AC 70 ms
71,232 KB
testcase_31 AC 65 ms
71,012 KB
testcase_32 AC 66 ms
71,080 KB
testcase_33 AC 67 ms
71,224 KB
testcase_34 AC 68 ms
70,924 KB
testcase_35 AC 68 ms
71,156 KB
testcase_36 AC 72 ms
71,192 KB
testcase_37 AC 67 ms
71,472 KB
testcase_38 AC 68 ms
71,132 KB
testcase_39 AC 75 ms
71,160 KB
testcase_40 AC 68 ms
71,124 KB
testcase_41 AC 73 ms
71,116 KB
testcase_42 AC 69 ms
71,048 KB
testcase_43 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

ans = []
x = N
m = 10 ** 18
while x != 1:
    if x % 2 == 0:
        ans.append('/')
        x //= 2
    else:
        ans.append('+')
        x = 3 * x + 1

print(len(ans))
print(''.join(ans))
0