結果

問題 No.171 スワップ文字列(Med)
ユーザー fmhrfmhr
提出日時 2015-03-23 01:12:25
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 1,000 ms
コード長 213 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-06-29 00:20:23
合計ジャッジ時間 1,111 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
from math import factorial

s = input()
c = Counter(s)

n = []
for v in c.values():
    n.append(v)

a = 1
for x in n:
    a *= factorial(x)

print((((factorial(len(s))-1)//a)%573))
0