結果

問題 No.8016 unordered_mapなるたけ落とすマン
ユーザー maspy
提出日時 2020-03-22 14:36:25
言語 Python3
(3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
MLE  
(最新)
AC  
(最初)
実行時間 -
コード長 398 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 56 ms
コンパイル使用メモリ 14,976 KB
実行使用メモリ 55,140 KB
最終ジャッジ日時 2026-10-07 09:39:24
合計ジャッジ時間 27,615 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7 MLE * 41
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#!/usr/bin/ python3.8
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
import numpy as np

N, M = map(int, readline().split())
A = np.array(readline().split(), np.int64)
B = np.array(readline().split(), np.int64)
A.sort()

C = np.searchsorted(A, B, side='right') - np.searchsorted(A, B, side='left')
print(' '.join(C.astype(str)))
0