結果
| 問題 | No.170 スワップ文字列(Easy) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-09-05 10:26:47 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 154 bytes |
| 記録 | |
| コンパイル時間 | 158 ms |
| コンパイル使用メモリ | 77,084 KB |
| 最終ジャッジ日時 | 2025-12-03 21:23:45 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 15 WA * 6 |
ソースコード
from math import factorial as f from collections import Counter as c s = c(raw_input()).values() print f(sum(s)) / reduce(lambda x,y:f(x)*f(y), s, 1) - 1