You are viewing a single comment's thread. Return to all comments →
If you want to cut down some processing time, here's a similar approach using bool instead of a temporary list
print("NO" if k <= sum(x <= 0 for x in a) else "YES" )
Seems like cookies are disabled on this browser, please enable them to open this website
Angry Professor
You are viewing a single comment's thread. Return to all comments →
If you want to cut down some processing time, here's a similar approach using bool instead of a temporary list