You are viewing a single comment's thread. Return to all comments →
print(sum([1 for x in apple if (x+a) in range(s,t+1)])) print(sum([1 for x in orange if (x+b) in range (a,t+1)])) even simpler
Seems like cookies are disabled on this browser, please enable them to open this website
Apple and Orange
You are viewing a single comment's thread. Return to all comments →
print(sum([1 for x in apple if (x+a) in range(s,t+1)])) print(sum([1 for x in orange if (x+b) in range (a,t+1)])) even simpler