結果
問題 | No.171 スワップ文字列(Med) |
ユーザー |
![]() |
提出日時 | 2023-04-07 16:17:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 1,000 ms |
コード長 | 247 bytes |
コンパイル時間 | 468 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-10-02 18:40:51 |
合計ジャッジ時間 | 1,231 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
import sysreadline=sys.stdin.readlinefrom collections import CounterS=readline().rstrip()ans=1mod=573for i in range(1,len(S)+1):ans*=ifor s,c in Counter(S).items():for i in range(1,c+1):ans//=ians-=1ans%=modprint(ans)