結果

問題 No.3648 Overbooked Meeting Rooms
コンテスト
ユーザー Tuchmos
提出日時 2026-08-30 09:44:47
言語 PyPy3
(7.3.23 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 73 ms / 2,000 ms
+ 519µs
コード長 204 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 267 ms
コンパイル使用メモリ 95,724 KB
実行使用メモリ 78,976 KB
最終ジャッジ日時 2026-08-30 09:44:53
合計ジャッジ時間 4,088 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N,M=map(int,input().split())
A=list(map(int,input().split()))
B=list(map(int,input().split()))
cnt=[0]*(M+1)
for a in A:
    cnt[a]+=1
ans=0
for i in range(1,M+1):
    ans+=max(0,cnt[i]-B[i-1])
print(ans)
0