結果
問題 |
No.2426 Select Plus or Minus
|
ユーザー |
![]() |
提出日時 | 2023-08-18 03:02:49 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 290 bytes |
コンパイル時間 | 175 ms |
コンパイル使用メモリ | 81,968 KB |
実行使用メモリ | 53,796 KB |
最終ジャッジ日時 | 2024-11-27 05:41:51 |
合計ジャッジ時間 | 3,865 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 36 WA * 5 |
ソースコード
N=int(input()) sosa="" for i in range(10000): if N%2 == 0: N/=2 sosa=sosa+"/" else: if i%2 == 1: N=N*3+1 sosa=sosa+"+" else: N=N*3-1 sosa=sosa+"-" if N==1: break print(len(sosa)) print(sosa)