結果

問題 No.1282 Display Elements
ユーザー aqua_tenhouaqua_tenhou
提出日時 2020-11-06 21:48:54
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 225 bytes
コンパイル時間 254 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 274,920 KB
最終ジャッジ日時 2024-07-22 12:39:35
合計ジャッジ時間 4,727 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15 TLE * 1 -- * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect

n = int(input())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
a = sorted(a)

ans = 0
for i, x in enumerate(b):
    p = bisect.bisect_right(a[i:], x)
    ans += n - p - i
    
print(ans)
0