You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from math import sqrt, ceil, floor, prod;import re;print(prod(ceil((t+(D:=sqrt(t**2-4*s)))/2-1)-floor((t-D)/2+1)+1 for t,s in zip(*[[int(i)for i in re.findall(r"\d+",line.replace(" ", ""))]for line in open("res/6.txt")])))