結果
問題 |
No.2766 Delicious Multiply Spice
|
ユーザー |
![]() |
提出日時 | 2024-05-31 22:36:18 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 159 bytes |
コンパイル時間 | 396 ms |
コンパイル使用メモリ | 82,028 KB |
実行使用メモリ | 53,944 KB |
最終ジャッジ日時 | 2024-12-21 00:20:32 |
合計ジャッジ時間 | 3,413 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 6 WA * 2 |
other | AC * 10 WA * 21 |
ソースコード
n = int(input()) a = [] while n > 1: if (n - 1) % 2 == 0: a.append('A') n = (n - 1) // 2 else: a.append('B') n = (n - 1) // 3 print(''.join(a[::-1]))