結果

問題 No.2426 Select Plus or Minus
ユーザー rlangevinrlangevin
提出日時 2023-09-18 14:39:21
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 199 bytes
コンパイル時間 748 ms
コンパイル使用メモリ 86,844 KB
実行使用メモリ 71,260 KB
最終ジャッジ日時 2023-09-18 14:39:30
合計ジャッジ時間 8,217 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
70,972 KB
testcase_01 AC 76 ms
71,248 KB
testcase_02 AC 76 ms
71,164 KB
testcase_03 AC 77 ms
70,936 KB
testcase_04 AC 77 ms
71,252 KB
testcase_05 WA -
testcase_06 AC 76 ms
71,172 KB
testcase_07 AC 76 ms
71,068 KB
testcase_08 AC 76 ms
70,988 KB
testcase_09 AC 77 ms
71,004 KB
testcase_10 AC 77 ms
71,256 KB
testcase_11 AC 75 ms
71,232 KB
testcase_12 AC 78 ms
70,984 KB
testcase_13 AC 78 ms
71,260 KB
testcase_14 AC 78 ms
71,120 KB
testcase_15 AC 76 ms
71,036 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 76 ms
71,148 KB
testcase_20 AC 75 ms
71,148 KB
testcase_21 AC 76 ms
71,040 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 76 ms
70,944 KB
testcase_25 AC 75 ms
71,004 KB
testcase_26 AC 75 ms
70,956 KB
testcase_27 AC 92 ms
70,988 KB
testcase_28 AC 76 ms
70,956 KB
testcase_29 AC 75 ms
70,940 KB
testcase_30 AC 73 ms
70,996 KB
testcase_31 AC 78 ms
71,152 KB
testcase_32 AC 77 ms
71,140 KB
testcase_33 AC 77 ms
71,172 KB
testcase_34 AC 77 ms
70,792 KB
testcase_35 AC 75 ms
71,172 KB
testcase_36 AC 82 ms
71,088 KB
testcase_37 AC 75 ms
71,172 KB
testcase_38 AC 77 ms
70,812 KB
testcase_39 AC 78 ms
71,232 KB
testcase_40 AC 77 ms
70,992 KB
testcase_41 AC 75 ms
71,164 KB
testcase_42 AC 76 ms
71,168 KB
testcase_43 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = []
while N != 1:
    if N % 2 == 0:
        ans.append("/")
        N //= 2
    else:
        ans.append("+")
        N = 3 * N + 1
        
print(len(ans))
print(*ans, sep="")
0