結果
| 問題 | No.1282 Display Elements |
| コンテスト | |
| ユーザー |
aqua_tenhou
|
| 提出日時 | 2020-11-06 21:55:43 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 105 ms / 2,000 ms |
| コード長 | 266 bytes |
| 記録 | |
| コンパイル時間 | 199 ms |
| コンパイル使用メモリ | 85,212 KB |
| 実行使用メモリ | 111,788 KB |
| 最終ジャッジ日時 | 2026-04-03 09:07:10 |
| 合計ジャッジ時間 | 2,129 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
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, x)
if p < i:
ans += n - i
else:
ans += n - p
print(ans)
aqua_tenhou