結果
| 問題 | No.170 スワップ文字列(Easy) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-04-27 20:03:13 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 62 ms / 5,000 ms |
| + 490µs | |
| コード長 | 173 bytes |
| 記録 | |
| コンパイル時間 | 66 ms |
| コンパイル使用メモリ | 80,896 KB |
| 実行使用メモリ | 80,932 KB |
| 最終ジャッジ日時 | 2026-07-17 13:43:59 |
| 合計ジャッジ時間 | 3,106 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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