Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- d = [list(map(int, re.findall(r"(\d+)", l))) for l in open("input").read().splitlines()]
- p=1
- #d=[[int(''.join(map(str, d[i])))] for i in range(2)] #remove for part 2
- for x,y in zip(d[0],d[1]):
- p*=sum(1 for i in range(x) if i*(x-i)>y)
- print(p)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement