結果
問題 |
No.2615 ペアの作り方
|
ユーザー |
|
提出日時 | 2024-02-01 10:49:35 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 283 bytes |
コンパイル時間 | 143 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 27,732 KB |
最終ジャッジ日時 | 2024-09-28 10:27:37 |
合計ジャッジ時間 | 3,393 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 7 RE * 6 |
ソースコード
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(p)