結果
| 問題 | No.1279 Array Battle |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-07 17:38:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 301 bytes |
| コンパイル時間 | 141 ms |
| コンパイル使用メモリ | 82,092 KB |
| 実行使用メモリ | 66,988 KB |
| 最終ジャッジ日時 | 2024-07-22 14:38:25 |
| 合計ジャッジ時間 | 1,705 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 12 RE * 7 |
ソースコード
n = int(input())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
a.sort(reverse=True)
b.sort()
ans = 1
for i in range(n):
if a[i] < b[i]:
for k in range(1,i):
ans *= k
for k in range(1,n-k+1):
ans *= k
print(ans)
exit()