結果
問題 |
No.2766 Delicious Multiply Spice
|
ユーザー |
![]() |
提出日時 | 2024-06-09 23:08:24 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 278 bytes |
コンパイル時間 | 191 ms |
コンパイル使用メモリ | 82,416 KB |
実行使用メモリ | 147,628 KB |
最終ジャッジ日時 | 2024-12-31 03:46:10 |
合計ジャッジ時間 | 31,402 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 8 |
other | AC * 22 TLE * 9 |
ソースコード
N = int(input()) def f(n): if n == 1: return "" if n % 2 == 1: if f(n//2) is not None: return f(n//2) + "A" if n % 3 == 1: if f(n//3) is not None: return f(n//3) + "B" else: return None print(f(N)) "🐬"