結果
| 問題 | No.171 スワップ文字列(Med) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-30 18:25:30 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 1,000 ms |
| + 149µs | |
| コード長 | 213 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 80,712 KB |
| 実行使用メモリ | 81,024 KB |
| 最終ジャッジ日時 | 2026-07-18 04:38:45 |
| 合計ジャッジ時間 | 2,216 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#coding: utf-8
##yuki_171
import math
from collections import Counter
s=raw_input()
count=Counter(s)
deno=1
for x in count.values():
deno*=math.factorial(x)
res=(math.factorial(len(s))/deno-1)%573
print res