結果
問題 |
No.2615 ペアの作り方
|
ユーザー |
👑 |
提出日時 | 2024-01-27 07:18:37 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 264 bytes |
コンパイル時間 | 492 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 98,412 KB |
最終ジャッジ日時 | 2024-09-28 09:34:25 |
合計ジャッジ時間 | 6,414 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 21 |
ソースコード
import math n = int(input()) x = [(int(z), 0) for z in input().split()] y = [(int(z), 1) for z in input().split()] cnt = 0 for _, c in sorted(x + y)[n]: cnt += c m = 998244353 a = math.factorial(cnt) a %= m b = math.factorial(n - cnt) b %= m print(a * b % m)