# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1185385 | Moonn | Med (COCI22_med) | C++20 | 0 ms | 0 KiB |
)
{
if(vc[j].first==v[i].first)
{
cout<<j+1<<' ';
vc[j].second-=500;
continue;
}
vc[j].second+=500;
}
sort(vc.begin(),vc.end(),comp);
for(j=0;j<n;j++)
{
if(vc[j].first==v[i].first)
{
cout<<j+1<<endl;
break;
}
vc[j].second-=500;
}
}
}
int main()
{
AI
//freopen("input.txt", "r", stdin);
//freopen("output.txt", "w", stdout);
ll t=1;
// cin>>t;
while(t--)
solve();
}