結果

問題 No.170 スワップ文字列(Easy)
ユーザー nebukuro09
提出日時 2016-09-05 10:26:47
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 154 bytes
コンパイル時間 55 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,912 KB
最終ジャッジ日時 2024-11-15 20:23:17
合計ジャッジ時間 1,692 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 16 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import factorial as f
from collections import Counter as c
s = c(raw_input()).values()
print f(sum(s)) / reduce(lambda x,y:f(x)*f(y), s, 1) - 1
0