結果

問題 No.171 スワップ文字列(Med)
ユーザー fmhrfmhr
提出日時 2015-03-23 00:09:56
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 19 ms / 1,000 ms
コード長 231 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 10,564 KB
実行使用メモリ 8,604 KB
最終ジャッジ日時 2023-09-11 09:39:44
合計ジャッジ時間 1,169 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,528 KB
testcase_01 AC 19 ms
8,568 KB
testcase_02 AC 19 ms
8,528 KB
testcase_03 AC 19 ms
8,476 KB
testcase_04 AC 18 ms
8,480 KB
testcase_05 AC 18 ms
8,464 KB
testcase_06 AC 19 ms
8,588 KB
testcase_07 AC 18 ms
8,572 KB
testcase_08 AC 18 ms
8,476 KB
testcase_09 AC 19 ms
8,524 KB
testcase_10 AC 19 ms
8,604 KB
testcase_11 AC 18 ms
8,564 KB
testcase_12 AC 19 ms
8,572 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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))
0