結果
問題 | No.2615 ペアの作り方 |
ユーザー |
|
提出日時 | 2024-02-01 10:50:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 339 ms / 2,000 ms |
コード長 | 285 bytes |
コンパイル時間 | 304 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 27,632 KB |
最終ジャッジ日時 | 2024-09-28 10:27:41 |
合計ジャッジ時間 | 3,372 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
import math N=int(input()) X=list(map(int,input().split())) sX=sorted(X) Y=list(map(int,input().split())) sY=sorted(Y,reverse=True) index=0 for i in range(N): if sX[i]>sY[i]: index=i break p=math.factorial(index)*math.factorial(N-index) ans=p%998244353 print(ans)