| 比赛 | 202110省实验桐柏一中普及组联赛 | 评测结果 | WWWWWWWWWW |
|---|---|---|---|
| 题目名称 | Killer | 最终得分 | 0 |
| 用户昵称 | weivi | 运行时间 | 0.000 s |
| 代码语言 | C++ | 内存使用 | 0.00 MiB |
| 提交时间 | 2021-10-18 19:18:55 | ||
#include <bits/stdc++.h>
using namespace std;
int a[106];
bool bj[106];
int main()
{
freopen("killer.in","r",stdin);
freopen("killer.out","w",stdout);
int m,n,r,x;
cin>>m>>n>>r;
for(int i=1;i<=m;i++)
{
cin>>a[i];
}
for(int j=1;j<=n;j++)
{
cin>>x;
for(int i=1;i<=m;i++)
{
if(x%a[i]==0 && !bj[i])
{
cout<<j<<" ";
bj[i]=true;
}
}
}
return 0;
}