結果
問題 | No.2766 Delicious Multiply Spice |
ユーザー |
|
提出日時 | 2024-05-31 21:29:58 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 531 bytes |
コンパイル時間 | 368 ms |
コンパイル使用メモリ | 81,996 KB |
実行使用メモリ | 55,296 KB |
最終ジャッジ日時 | 2024-12-20 22:28:14 |
合計ジャッジ時間 | 3,553 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 8 |
other | WA * 31 |
ソースコード
S = inputR = rangeP = printdef I(): return int(S())def M(): return map(int, S().split())def L(): return list(M())def O(): return list(map(int, open(0).read().split()))def yn(b): print("Yes" if b else "No")biga = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"smaa = "abcdefghijklmnopqrstuvwxyz"from functools import cache@cachedef f(n):print(n)if n == 1:return ""if n % 2 == 1:d = f(n // 2)if d != None:return d + "A"if n % 3 == 1:d = f(n // 3)if d != None:return d + "B"return Nonen = I()print(f(n))