#include #include using namespace std; int n, m; int *hinnad; map asukohad; string *artiklid, toode; int hind(string toode){ return hinnad[asukohad[toode]]; } int main(){ cin >> n; hinnad=new int[n]; artiklid=new string[n]; for(int i=0; i> artiklid[i]; cin >> hinnad[i]; asukohad[artiklid[i]]=i; } cin >> m; for(int i=0; i> toode; cout << toode << " " << hind(toode) << endl; } //Leidke kuluv summa. Edasi vahetus(ed) vastavalt ülesandele }