結果

問題 No.2615 ペアの作り方
ユーザー sinsin
提出日時 2024-02-01 10:48:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 267 bytes
コンパイル時間 2,429 ms
コンパイル使用メモリ 11,648 KB
実行使用メモリ 26,896 KB
最終ジャッジ日時 2024-02-01 10:48:28
合計ジャッジ時間 13,608 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
9,984 KB
testcase_01 AC 30 ms
9,984 KB
testcase_02 WA -
testcase_03 AC 29 ms
9,984 KB
testcase_04 AC 29 ms
9,984 KB
testcase_05 AC 29 ms
9,984 KB
testcase_06 AC 29 ms
9,984 KB
testcase_07 AC 29 ms
9,984 KB
testcase_08 AC 28 ms
9,984 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0