結果
| 問題 | No.171 スワップ文字列(Med) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-04-27 20:06:05 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 61 ms / 1,000 ms |
| + 806µs | |
| コード長 | 181 bytes |
| 記録 | |
| コンパイル時間 | 68 ms |
| コンパイル使用メモリ | 81,152 KB |
| 実行使用メモリ | 80,896 KB |
| 最終ジャッジ日時 | 2026-07-17 13:44:21 |
| 合計ジャッジ時間 | 1,918 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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