結果
| 問題 | No.171 スワップ文字列(Med) | 
| コンテスト | |
| ユーザー |  fmhr | 
| 提出日時 | 2015-03-23 00:09:56 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 27 ms / 1,000 ms | 
| コード長 | 231 bytes | 
| コンパイル時間 | 69 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-06-29 00:18:13 | 
| 合計ジャッジ時間 | 876 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 | 
ソースコード
from collections import Counter
from math import factorial
s = input()
c = Counter(list(s))
n = []
for key, value in c.items():
    n.append(value)
a = 1
for i in n:
    a *= factorial(i)
print((((factorial(len(s))-1)//a)%573))
            
            
            
        