結果
| 問題 | No.171 スワップ文字列(Med) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-30 18:25:30 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 87 ms / 1,000 ms |
| コード長 | 213 bytes |
| 記録 | |
| コンパイル時間 | 158 ms |
| コンパイル使用メモリ | 77,852 KB |
| 最終ジャッジ日時 | 2025-12-03 19:58:35 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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