結果
問題 | No.2615 ペアの作り方 |
ユーザー |
👑 |
提出日時 | 2024-01-27 07:23:52 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 264 bytes |
コンパイル時間 | 224 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 38,828 KB |
最終ジャッジ日時 | 2024-09-28 09:34:29 |
合計ジャッジ時間 | 3,474 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 21 |
ソースコード
import mathn = int(input())x = [(int(z), 0) for z in input().split()]y = [(int(z), 1) for z in input().split()]cnt = 0for _, c in sorted(x + y)[n]:cnt += cm = 998244353a = math.factorial(cnt)a %= mb = math.factorial(n - cnt)b %= mprint(a * b % m)