0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-23 22:28:48 +00:00
Baoshuo Ren 2022-02-26 20:07:01 +08:00
parent 55a39515b5
commit 27fdb57d61
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

29
AtCoder/ABC241/B/B.cpp Normal file
View File

@ -0,0 +1,29 @@
#include <iostream>
#include <map>
using std::cin;
using std::cout;
const char endl = '\n';
int n, m;
std::map<int, int> a;
int main() {
std::ios::sync_with_stdio(false);
cin >> n >> m;
for (int i = 1; i <= n; i++) {
int x;
cin >> x;
a[x]++;
}
for (int i = 1; i <= m; i++) {
int x;
cin >> x;
if (!a[x]--) {
cout << "No" << endl;
return 0;
}
}
cout << "Yes" << endl;
return 0;
}