結果

問題 No.1282 Display Elements
ユーザー aqua_tenhouaqua_tenhou
提出日時 2020-11-06 21:48:54
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 225 bytes
コンパイル時間 334 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 75,960 KB
最終ジャッジ日時 2023-09-29 18:36:21
合計ジャッジ時間 5,807 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,424 KB
testcase_01 AC 69 ms
71,244 KB
testcase_02 AC 71 ms
71,236 KB
testcase_03 AC 70 ms
71,212 KB
testcase_04 AC 70 ms
71,000 KB
testcase_05 AC 72 ms
71,416 KB
testcase_06 AC 69 ms
71,408 KB
testcase_07 AC 70 ms
71,408 KB
testcase_08 AC 71 ms
71,396 KB
testcase_09 AC 69 ms
71,208 KB
testcase_10 AC 77 ms
75,680 KB
testcase_11 AC 76 ms
75,932 KB
testcase_12 AC 71 ms
71,280 KB
testcase_13 AC 76 ms
75,344 KB
testcase_14 AC 78 ms
75,960 KB
testcase_15 TLE -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
権限があれば一括ダウンロードができます

ソースコード

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