結果
問題 |
No.2593 Reorder and Mod 120
|
ユーザー |
![]() |
提出日時 | 2023-12-21 06:52:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 166 bytes |
コンパイル時間 | 104 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 19,504 KB |
最終ジャッジ日時 | 2024-09-27 10:46:56 |
合計ジャッジ時間 | 21,685 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 8 WA * 13 TLE * 5 |
ソースコード
import math n=int(input()) S=str(input()) a=[0]*26 for c in S: a[int(c)]+=1 ret=math.factorial(n) for i in range(26): ret//=math.factorial(a[i]) print(ret%120)