Barua Skywatcher

Source Code

n=int(input())
c=0
for i in range(n):
    a,b=map(int,input().split())
    if(a>0 and b>0):
        c+=1
print("{:.6f}".format(c/n))

Comments