結果

問題 No.170 スワップ文字列(Easy)
ユーザー nebukuro09
提出日時 2016-09-21 15:05:34
言語 Python2
(2.7.18)
結果
AC  
実行時間 15 ms / 5,000 ms
コード長 187 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,912 KB
最終ジャッジ日時 2024-12-23 00:43:05
合計ジャッジ時間 1,557 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
import operator
f = lambda x:reduce(operator.mul, range(1, x+1), 1)
v = Counter(raw_input()).values()
print f(sum(v))/reduce(operator.mul, map(f, v), 1)-1
0