結果
| 問題 | No.2615 ペアの作り方 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-01 10:50:59 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 332 ms / 2,000 ms |
| + 59µs | |
| コード長 | 285 bytes |
| 記録 | |
| コンパイル時間 | 281 ms |
| コンパイル使用メモリ | 21,340 KB |
| 実行使用メモリ | 30,292 KB |
| 最終ジャッジ日時 | 2026-09-05 15:35:47 |
| 合計ジャッジ時間 | 5,650 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)