http://218.5.5.242:9018/JudgeOnline/problem.php?id=1316
#include<cstdio>
#include<cstring>
#include<iostream>
#include<string>
using namespace std;
int a,b,c;
string sa[1005],sb[1005],sc[1005];
bool checka(int x){
for(int i=0;i<a;i++)
if(sa[i]==sb[x])return 1;
return 0;
}
bool checkc(int x){
for(int i=0;i<c;i++)
if(sc[i]==sb[x])return 1;
return 0;
}
int main(){
while(scanf("%d%d%d",&a,&b,&c)!=......
阅读全文