文章
34
粉丝
316
获赞
10
访问
24.2k
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n ;
int a[100];
for (int i = 0; i < n; i++) cin >> a[i];
int m;
cin >> m ;
int b[100];
bool flag = false;
for (int i = 0; i < m; i++)
{
cin >> b[i];
flag = false;
for (int j = 0; j < n; j++)
{
if (b[i] == a[j]) {
cout << "YES" << endl;
flag = true;
 ...
登录后发布评论
暂无评论,来抢沙发