streamlined 1956A

This commit is contained in:
ShazidMahsrafi 2024-04-14 00:39:48 +06:00
parent 977c14bdc0
commit d2726edca2

View File

@ -52,14 +52,8 @@ void solve()
for(auto &i:kick) cin>>i;
for(auto &i:player) cin>>i;
for(auto x:player)
{
if(x<kick[0])
cout<<x<<" ";
else
cout<<kick[0]-1<<" ";
}
cout<<min(kick[0]-1,x)<<" ";
cout<<endl;
}
signed main()