結果

問題 No.171 スワップ文字列(Med)
ユーザー yuppe19 😺yuppe19 😺
提出日時 2015-04-27 20:06:05
言語 Python2
(2.7.18)
結果
AC  
実行時間 15 ms / 1,000 ms
コード長 181 bytes
コンパイル時間 774 ms
コンパイル使用メモリ 6,576 KB
実行使用メモリ 6,552 KB
最終ジャッジ日時 2023-09-18 13:54:30
合計ジャッジ時間 1,906 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
6,552 KB
testcase_01 AC 14 ms
6,464 KB
testcase_02 AC 14 ms
6,388 KB
testcase_03 AC 14 ms
6,376 KB
testcase_04 AC 14 ms
6,316 KB
testcase_05 AC 14 ms
6,392 KB
testcase_06 AC 14 ms
6,404 KB
testcase_07 AC 14 ms
6,488 KB
testcase_08 AC 15 ms
6,512 KB
testcase_09 AC 15 ms
6,472 KB
testcase_10 AC 14 ms
6,292 KB
testcase_11 AC 14 ms
6,536 KB
testcase_12 AC 14 ms
6,316 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
from math import factorial as f
from collections import Counter
s = raw_input()
print (f(len(s)) / reduce(lambda x, y: x*y, map(f, Counter(s).values())) - 1) % 573
0