結果

問題 No.52 よくある文字列の問題
ユーザー sekihankamibanz
提出日時 2018-10-28 15:17:55
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 309 bytes
コンパイル時間 101 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-11-19 07:03:39
合計ジャッジ時間 1,147 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #


s = input()
word_count = {}


def fact(n):
    if n == 0:
        return 1
    return n * fact(n -1)
    
    
for i in s:
    if i not in word_count:
        word_count[i] = 1
    
    else:
        word_count[i] += 1

cases = fact(len(s))

for i in word_count.values():
    cases //= fact(i)

print(cases)
0