結果

問題 No.1282 Display Elements
ユーザー NatsubiSoganNatsubiSogan
提出日時 2020-11-06 23:37:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 203 bytes
コンパイル時間 241 ms
コンパイル使用メモリ 10,548 KB
実行使用メモリ 23,560 KB
最終ジャッジ日時 2023-09-29 19:42:35
合計ジャッジ時間 2,986 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,832 KB
testcase_01 AC 16 ms
7,948 KB
testcase_02 WA -
testcase_03 AC 16 ms
7,960 KB
testcase_04 AC 16 ms
7,888 KB
testcase_05 WA -
testcase_06 AC 16 ms
7,860 KB
testcase_07 AC 16 ms
7,884 KB
testcase_08 AC 16 ms
7,956 KB
testcase_09 WA -
testcase_10 AC 17 ms
7,876 KB
testcase_11 AC 17 ms
7,892 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 159 ms
23,192 KB
testcase_20 AC 159 ms
23,160 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import bisect_right
n = int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
ans = 0
for i in range(n):
    ans += n - max(i, bisect_right(a, b[i]))
print(ans)
0