結果

問題 No.2766 Delicious Multiply Spice
ユーザー Butterflv
提出日時 2024-05-31 21:25:16
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 234 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,504 KB
最終ジャッジ日時 2024-12-20 22:17:41
合計ジャッジ時間 39,649 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 8
other AC * 20 TLE * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
def dfs(arr, n):
  if n==N:
    print("".join(arr))
    exit()
  elif n>N:
    return
  newArr = arr[:]
  newArr.append("A")
  dfs(newArr, 2*n+1)

  newArr = arr[:]
  newArr.append("B")
  dfs(newArr, 3*n+1)

dfs([], 1)
0