We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
try:
t = int(input().strip())
if t in range(1, 1001):
for i in range(t):
n = int(input().strip())
if n in range(1, 10**6):
print(draws(n))
except Exception:
pass
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Maximum Draws
You are viewing a single comment's thread. Return to all comments →
def draws(n): return n+1 #pigenhole principle
try: t = int(input().strip()) if t in range(1, 1001): for i in range(t): n = int(input().strip()) if n in range(1, 10**6): print(draws(n)) except Exception: pass