結果

問題 No.1282 Display Elements
ユーザー c-yanc-yan
提出日時 2020-11-06 22:28:55
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 249 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 86,972 KB
実行使用メモリ 76,284 KB
最終ジャッジ日時 2023-09-29 19:07:40
合計ジャッジ時間 6,555 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,324 KB
testcase_01 AC 71 ms
71,392 KB
testcase_02 AC 72 ms
71,416 KB
testcase_03 AC 75 ms
71,292 KB
testcase_04 AC 75 ms
71,356 KB
testcase_05 AC 71 ms
71,120 KB
testcase_06 AC 73 ms
71,460 KB
testcase_07 AC 73 ms
71,408 KB
testcase_08 AC 73 ms
71,188 KB
testcase_09 AC 74 ms
71,116 KB
testcase_10 AC 80 ms
76,092 KB
testcase_11 AC 82 ms
76,072 KB
testcase_12 AC 73 ms
71,252 KB
testcase_13 AC 80 ms
75,428 KB
testcase_14 AC 83 ms
76,284 KB
testcase_15 TLE -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import bisect_left

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

a.sort()
t = []
result = 0
for i in range(N):
    t.append(b[i])
    t.sort()
    result += bisect_left(t, a[i])
print(result)
0