結果
| 問題 | No.171 スワップ文字列(Med) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-04-27 20:06:05 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 99 ms / 1,000 ms |
| コード長 | 181 bytes |
| 記録 | |
| コンパイル時間 | 239 ms |
| コンパイル使用メモリ | 77,204 KB |
| 最終ジャッジ日時 | 2025-12-03 14:50:02 |
|
ジャッジサーバーID (参考情報) |
judge1 / 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