結果
| 問題 | No.2426 Select Plus or Minus |
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2023-08-18 21:06:16 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 176 bytes |
| 記録 | |
| コンパイル時間 | 70 ms |
| コンパイル使用メモリ | 80,432 KB |
| 実行使用メモリ | 55,888 KB |
| 最終ジャッジ日時 | 2026-10-01 06:34:52 |
| 合計ジャッジ時間 | 4,049 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 35 WA * 6 |
ソースコード
N = int(input())
ANS = []
while N>1:
if N%2==0:
N=N//2
ANS.append('/')
else:
N=N*3+1
ANS.append('+')
print(len(ANS))
print(''.join(ANS))
H20