結果
問題 |
No.171 スワップ文字列(Med)
|
ユーザー |
|
提出日時 | 2015-04-27 20:06:05 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 13 ms / 1,000 ms |
コード長 | 181 bytes |
コンパイル時間 | 174 ms |
コンパイル使用メモリ | 6,784 KB |
実行使用メモリ | 6,912 KB |
最終ジャッジ日時 | 2024-07-05 04:54:42 |
合計ジャッジ時間 | 1,431 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#!/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