結果
| 問題 |
No.2615 ペアの作り方
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-01 10:48:14 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 267 bytes |
| コンパイル時間 | 90 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 27,788 KB |
| 最終ジャッジ日時 | 2024-09-28 10:27:34 |
| 合計ジャッジ時間 | 3,289 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)
print(p)