結果
| 問題 | No.3648 Overbooked Meeting Rooms |
| コンテスト | |
| ユーザー |
UT0911
|
| 提出日時 | 2026-07-19 20:11:00 |
| 言語 | C (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 2,000 ms |
| + 815µs | |
| コード長 | 286 bytes |
| 記録 | |
| コンパイル時間 | 736 ms |
| コンパイル使用メモリ | 34,816 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-28 20:51:05 |
| 合計ジャッジ時間 | 2,255 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 |
ソースコード
#include<stdio.h>
int main(){
int N,M;
scanf("%d %d",&N,&M);
int count[501]={0};
for(int i=0;i<N;i++){
int A;
scanf("%d ",&A);
count[A]++;
}
int ans=0;
for(int i=1;i<=M;i++){
int B;
scanf("%d ",&B);
if(B<count[i]){
ans+=count[i]-B;
}
}
printf("%d\n",ans);
}
UT0911