結果

問題 No.170 スワップ文字列(Easy)
ユーザー utsumidaisuke
提出日時 2018-12-24 12:23:15
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 196 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-25 10:58:35
合計ジャッジ時間 1,661 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

f = math.factorial

w = list(input())
n = len(w)
dct = {}
for i in w:
    dct.setdefault(i,0)
    dct[i] += 1


r = 1
for i,j in dct.items():
    r *= comb(n,j)
    n -= j

print(r-1)
0