結果
問題 | No.2615 ペアの作り方 |
ユーザー |
![]() |
提出日時 | 2024-01-26 21:32:53 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 561 ms / 2,000 ms |
コード長 | 379 bytes |
コンパイル時間 | 306 ms |
コンパイル使用メモリ | 81,732 KB |
実行使用メモリ | 109,768 KB |
最終ジャッジ日時 | 2024-09-28 07:43:31 |
合計ジャッジ時間 | 5,057 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
N = int(input())X = list(map(int,input().split()))Y = list(map(int,input().split()))mod = 998244353Z = []for x in X:Z.append((x,0))for y in Y:Z.append((y,1))Z.sort()x = 0y = 0for i in range(N):c,j = Z[i]if j == 0:x += 1else:y += 1ans = 1for i in range(1,x+1):ans *= ians %= modfor i in range(1,y+1):ans *= ians %= modprint(ans)