正文
增加 2 行删除 2 行
53 行未改动5455565758596061624 行未改动67686970717273747521 行未改动53 行未改动v[y].push_back({x,cnt});}if(c[0]=='R'){scanf("%lld",&x);r[x]=Q-1;}}for(int i=1;i<=cnt;i++)4 行未改动{if(age[i]==-1)age[i]=q;}for(int i=1;i<=n;i++){ans[i]=age[i];p.push({ans[i],i});}while(!p.empty())21 行未改动53 行未改动5455565758596061624 行未改动67686970717273747521 行未改动53 行未改动v[y].push_back({x,cnt});}if(c[0]=='R'){scanf("%lld",&x);r[x]=Q-1;}}for(int i=1;i<=cnt;i++)4 行未改动{if(age[i]==-1)age[i]=q;}for(int i=1;i<=n;i++){ans[i]=age[i];p.push({ans[i],i});}while(!p.empty())21 行未改动