#include<bits/stdc++.h> using namespace std; struct lian{ string address,next; long long data; }s1[100001],s2[100001]; int main(){ string str; int n,k; cin>>str>>n>>k; int i,l; int j=0; for(i=0;i<n;i++)cin>>s1[i].address>>s1[i].data>>s1[i].next; ...