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