結果
| 問題 |
No.2766 Delicious Multiply Spice
|
| コンテスト | |
| ユーザー |
n_na
|
| 提出日時 | 2024-05-31 23:43:58 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 206 bytes |
| コンパイル時間 | 419 ms |
| コンパイル使用メモリ | 82,404 KB |
| 実行使用メモリ | 54,248 KB |
| 最終ジャッジ日時 | 2024-12-21 01:47:57 |
| 合計ジャッジ時間 | 3,515 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 6 WA * 2 |
| other | AC * 10 WA * 21 |
ソースコード
N = int(input())
ans = []
while N > 1:
if (N-1)%2 == 0:
N = (N-1)//2
ans.append("A")
else:
N = (N-1)//3
ans.append("B")
ans = list(reversed(ans))
print("".join(ans))
n_na