結果

問題 No.1282 Display Elements
ユーザー NatsubiSoganNatsubiSogan
提出日時 2020-11-06 23:41:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 212 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 10,584 KB
実行使用メモリ 23,500 KB
最終ジャッジ日時 2023-09-29 19:42:59
合計ジャッジ時間 3,068 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,040 KB
testcase_01 AC 15 ms
7,940 KB
testcase_02 AC 15 ms
7,876 KB
testcase_03 AC 14 ms
7,940 KB
testcase_04 AC 15 ms
7,876 KB
testcase_05 AC 15 ms
7,940 KB
testcase_06 AC 15 ms
7,940 KB
testcase_07 AC 15 ms
7,856 KB
testcase_08 AC 15 ms
7,944 KB
testcase_09 AC 16 ms
7,916 KB
testcase_10 AC 17 ms
8,024 KB
testcase_11 AC 16 ms
7,880 KB
testcase_12 AC 15 ms
7,916 KB
testcase_13 AC 16 ms
7,944 KB
testcase_14 AC 16 ms
8,056 KB
testcase_15 AC 196 ms
21,860 KB
testcase_16 AC 81 ms
13,812 KB
testcase_17 AC 160 ms
19,456 KB
testcase_18 AC 102 ms
15,276 KB
testcase_19 AC 157 ms
23,500 KB
testcase_20 AC 157 ms
23,352 KB
testcase_21 AC 209 ms
23,196 KB
testcase_22 AC 191 ms
23,268 KB
testcase_23 AC 212 ms
23,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect as B
I,A=input,0
def L():return list(map(int,I().split()))
n=int(I());a=sorted(L());b=L()
for i in range(n):A+=n-max(i,B.bisect_right(a,b[i]))
print(A)
0