My issue
how we can find p1 = p2 = …pn, if both are in line variable and this all are also part of a single test case
My code
# cook your dish here
t=int(input())
for i in range(t):
n=int(input())
for j in range(n):
c=0
pi,si=map(int,input().split())
if pi > 8 :
c =0
else:
if pi > si:
c=0
else:
c+=si
print(c)
Problem Link: WATSCORE Problem - CodeChef