結果
| 問題 |
No.171 スワップ文字列(Med)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-30 18:25:30 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 15 ms / 1,000 ms |
| コード長 | 213 bytes |
| コンパイル時間 | 238 ms |
| コンパイル使用メモリ | 7,072 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-02 08:15:35 |
| 合計ジャッジ時間 | 1,178 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / 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