streamlined 1956A
This commit is contained in:
parent
977c14bdc0
commit
d2726edca2
@ -52,14 +52,8 @@ void solve()
|
|||||||
for(auto &i:kick) cin>>i;
|
for(auto &i:kick) cin>>i;
|
||||||
for(auto &i:player) cin>>i;
|
for(auto &i:player) cin>>i;
|
||||||
for(auto x:player)
|
for(auto x:player)
|
||||||
{
|
cout<<min(kick[0]-1,x)<<" ";
|
||||||
if(x<kick[0])
|
|
||||||
cout<<x<<" ";
|
|
||||||
else
|
|
||||||
cout<<kick[0]-1<<" ";
|
|
||||||
}
|
|
||||||
cout<<endl;
|
cout<<endl;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
signed main()
|
signed main()
|
||||||
|
Loading…
Reference in New Issue
Block a user