提交 1abdc916 编写于 作者: 0xc004f210's avatar 0xc004f210

Update No.1.cpp

上级 c5008d11
#include <bits/stdc++.h>
using namespace std;
struct asd{
string a;
int b,c;
}asdasd[1005];
int main(){
int a,b,c;
cin>>a;
for(int i=1;i<=a;i++){
cin>>asdasd[i].a>>asdasd[i].b>>asdasd[i].c;
}
cin>>b;
for(int i=1;i<=b;i++){
cin>>c;
for(int j=1;j<=a;j++){
if(asdasd[j].b==c){
cout<<asdasd[j].a+' '<<asdasd[j].c<<endl;
}
}
}
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册