結果

問題 No.2118 遺伝的有限集合の数え上げ
ユーザー googol_S0googol_S0
提出日時 2022-11-04 22:00:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 191 bytes
コンパイル時間 282 ms
コンパイル使用メモリ 87,284 KB
実行使用メモリ 75,544 KB
最終ジャッジ日時 2023-09-26 00:25:37
合計ジャッジ時間 4,874 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,300 KB
testcase_01 AC 68 ms
71,264 KB
testcase_02 AC 68 ms
71,368 KB
testcase_03 AC 68 ms
71,120 KB
testcase_04 AC 69 ms
71,276 KB
testcase_05 AC 69 ms
71,488 KB
testcase_06 AC 68 ms
71,140 KB
testcase_07 AC 68 ms
71,452 KB
testcase_08 AC 68 ms
71,440 KB
testcase_09 AC 69 ms
71,448 KB
testcase_10 AC 68 ms
71,584 KB
testcase_11 AC 67 ms
71,588 KB
testcase_12 AC 67 ms
71,136 KB
testcase_13 AC 67 ms
71,336 KB
testcase_14 AC 69 ms
71,400 KB
testcase_15 AC 68 ms
71,328 KB
testcase_16 AC 68 ms
71,272 KB
testcase_17 AC 68 ms
71,080 KB
testcase_18 AC 69 ms
71,660 KB
testcase_19 AC 67 ms
71,392 KB
testcase_20 AC 69 ms
71,492 KB
testcase_21 AC 68 ms
71,180 KB
testcase_22 AC 68 ms
71,132 KB
testcase_23 AC 69 ms
71,464 KB
testcase_24 AC 67 ms
71,512 KB
testcase_25 AC 67 ms
71,284 KB
testcase_26 AC 69 ms
71,560 KB
testcase_27 AC 68 ms
71,372 KB
testcase_28 AC 69 ms
75,544 KB
testcase_29 AC 71 ms
75,456 KB
testcase_30 AC 71 ms
75,524 KB
testcase_31 AC 70 ms
75,516 KB
testcase_32 AC 69 ms
71,440 KB
testcase_33 AC 71 ms
75,412 KB
testcase_34 AC 71 ms
75,412 KB
testcase_35 AC 70 ms
75,488 KB
testcase_36 AC 72 ms
75,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def f(n):
  r=[]
  for i in range(30):
    if (n>>i)&1:
      r.append(f(i))
  return tuple(r)

print(str(f(int(input()))).replace(' ','').replace('(','{').replace(')','}').replace(',}','}'))
0