結果
問題 |
No.170 スワップ文字列(Easy)
|
ユーザー |
|
提出日時 | 2015-04-27 20:03:13 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 15 ms / 5,000 ms |
コード長 | 173 bytes |
コンパイル時間 | 175 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,912 KB |
最終ジャッジ日時 | 2024-12-23 00:26:14 |
合計ジャッジ時間 | 1,438 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
#!/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