Problem:
 Score : 200 points    Problem Statement There are N pieces of source code. The characteristics of the i -th code is represented by M integers A_{i1}, A_{i2}, ..., A_{iM} .  Additionally, you are given integers B_1, B_2, ..., B_M and C .  The i -th code correctly solves this problem if and only if A_{i1} B_1 + A_{i2} B_2 + ... + A_{iM} B_M + C > 0 .  Among the N codes, find the number of codes that correctly solve this problem.      Constraints  All values in input are integers.  1 \leq N, M \leq 20  -100 \leq A_{ij} \leq 100  -100 \leq B_i \leq 100  -100 \leq C \leq 100         Input Input is given from Standard Input in the following format:  N  M  C  B_1  B_2  ...  B_M  A_{11}  A_{12}  ...  A_{1M}  A_{21}  A_{22}  ...  A_{2M}  \vdots  A_{N1}  A_{N2}  ...  A_{NM}       Output Print the number of codes among the given N codes that correctly solve this problem.        Sample Input 1 2 3 -10
1 2 3
3 2 1
1 2 2      Sample Output 1 1  Only the second code correctly solves this problem, as follows:   Since 3 \times 1 + 2 \times 2 + 1 \times 3 + (-10) = 0 \leq 0 , the first code does not solve this problem.  1 \times 1 + 2 \times 2 + 2 \times 3 + (-10) = 1 > 0 , the second code solves this problem.        Sample Input 2 5 2 -4
-2 5
100 41
100 40
-3 0
-6 -2
18 -13      Sample Output 2 2       Sample Input 3 3 3 0
100 -100 0
0 100 100
100 100 100
-100 100 100      Sample Output 3 0  All of them are Wrong Answer . Except yours.

Solution (Python):
n,m,c = map(int,input().split())
b = [int(i) for i in input().split()]
a = []
for i in range(n):
    a_in = [int(i) for i in input().split()]
    a.append(a_in)

count = 0
for i in a:
    daisyo = 0
    for j in range(m):
        daisyo += b[j]*i[j]
    if daisyo+c > 0:
        count += 1
print(count)

Solution (Python):
import sys
read_=sys.stdin.buffer.readline

N,M,C=map(int,read_().split())
B=list(map(int,read_().split()))
A=[list(map(int,read_().split())) for _ in range(N)]

ans=0
for i in range(N):
    res=0
    for j in range(M):
        res+=A[i][j]*B[j]
    res+=C
    if res>0:
        ans+=1

print(ans)

Solution (Python):

N, M, C = map(int, input().split())
B = list(map(int, input().split()))
ans = 0

for _ in range(N):
    Ai = list(map(int, input().split()))
    sum_ab = 0
    for i in range(M):
        sum_ab += Ai[i] * B[i]
    if sum_ab + C > 0:
        ans += 1
        
print(ans)

Solution (Python):
count = 0
N, M, C = map(int, input().split())
B = list(map(int, input().split()))
for i in range(N):
    if sum(map(lambda x, y: x * y, list(map(int, input().split())), B)) + C > 0:
        count += 1
print(count)

Solution (Python):
N,M,C = map(int,input().split())
B = list(map(int,input().split()))
count = 0
for i in range(N):
    A = list(map(int,input().split()))
    p = C
    for j in range(M):p+=A[j]*B[j]
    if p>0:count+= 1
print(count)

Solution (Python):
def solve():
    N, M, C = [int(_) for _ in input().split()]
    B = [int(_) for _ in input().split()]
    res = 0
    for i in range(N):
        sum = 0
        A = [int(_) for _ in input().split()]
        for a, b in zip(A, B):
            sum += a * b
        sum += C
        if sum > 0:
            res += 1
    return res
if __name__ == '__main__':
    print(solve())

Solution (Python):
N, M, C = map(int, input().split())
B = list(map(int, input().split()))

ans = 0
for _ in range(N):
    A = map(int, input().split())
    if sum([a * b for a, b in zip(A, B)]) + C > 0:
        ans += 1
print(ans)

Solution (Python):
N,M,C=map(int,input().split())
B=list(map(int,input().split()))
count=0
for i in range(N):
    total=C
    A=list(map(int,input().split()))
    for j in range(M):
        total+=A[j]*B[j]
    if total>0:
        count+=1
print(count)

Solution (Python):
n,m,c = map(int, input().split())
b = list(map(int,input().split()))

result = 0

for i in range(n):
  a = list(map(int,input().split()))
  sum_ab = 0
  for j in range(m):
    sum_ab += a[j]*b[j]
  if sum_ab+c > 0:
    result += 1

print(result)

Solution (Python):
N,M,C=map(int,input().split())
B=list(map(int,input().split()))
count=0
for i in range(N):
    A=list(map(int,input().split()))
    p=C
    for j in range(M):p+=A[j]*B[j]
    if p>0:count+=1
print(count)

Solution (Python):
N, M, C = map(int, input().split())
Blist = list(map(int, input().split()))
ans = 0
for i in range(N):
    score = C
    Alist = list(map(int, input().split()))
    for j in range(M):
        score += Alist[j]*Blist[j]
    if score > 0:
        ans += 1
print(ans)

Solution (Python):
n, m, c = map(int, input().split())
b = list(map(int, input().split()))


cnt = 0

for i in range(n):
    a = list(map(int, input().split()))
    tmp = c
    for j in range(0, m):
        tmp += a[j] * b[j]
    if (tmp > 0):
        cnt += 1

print(cnt)

Solution (Python):
n, m, c = map(int, input().split())
b = list(map(int,input().split()))
a = []
for i in range(n):
    a.append(list(map(int, input().split())))
ans = 0
for i in range(n):
    val = c
    for j in range(m):
        val += (a[i][j] * b[j])
    if val > 0:
        ans += 1
print(ans)

Solution (Python):
n,m,c=map(int,input().split())
b_l=list(map(int,input().split()))

cnt=0
for i in range(n):
            a_l_i = list(map(int,input().split()))
            c_l = 0
            for j in range(m):
                        c_l += a_l_i[j] * b_l[j]
            last_ = c_l + c

            if last_>0:
                        cnt+=1
print(cnt)

Solution (Python):
n,m,c=map(int,input().split())
b_l=list(map(int,input().split()))

cnt=0
for i in range(n):
            a_l_i = list(map(int,input().split()))
            c_l = 0
            for j in range(m):
                        c_l += a_l_i[j] * b_l[j]
            last_ = c_l + c

            if last_>0:
                        cnt+=1
print(cnt)

Solution (Python):
def main():
  import numpy as np
  import sys 
  input=sys.stdin.readline
  n,m,c=map(int,input().split())
  B=list(map(int,input().split()))
  B=np.array(B)
  cnt=0
  for i in range(n):
    A=np.array(list(map(int,input().split())))
    if (B*A).sum()+c>0:
      cnt+=1
  print(cnt)
if __name__=='__main__':
  main()

Solution (Python):
import numpy as np
n,m,c=map(int,input().split())
B=list(map(int,input().split()))
C=[list(map(int,input().split())) for i in range(n)]
B=np.array(B)
C=np.array(C)
cnt=0
for i in range(n):
  if (B*C[i]).sum()+c>0:
    cnt+=1
print(cnt)

Solution (Python):
N,M,C = map(int, input().split())
b = [int(i) for i in input().split()]
A = [list(map(int,input().split())) for _ in range(N)]
print(len([a for a in A if sum([x*y for (x,y) in zip(a,b)])+C>0]))

Solution (Python):
cnt=0;p=0
N,M,C=map(int,input().split())
B=list(map(int,input().split()))
A=[list(map(int, input().split())) for t in range(N)]
cnt=0;p=C


for i in range(N):
  for j in range(M):
    p=p+A[i][j]*B[j]
  if p>0:
    cnt+=1
  p=C
print(cnt)

Solution (Python):
n,m,c = map(int,input().split())
b = list(map(int,input().split()))
a = [list(map(int,input().split())) for _ in range(n)]
ans=0
for i in range(n):
    su = 0
    for j in range(m):
        su += b[j] * a[i][j]
    
    if su + c > 0:
        ans += 1
print(ans)

Solution (Python):
n,m,c=map(int,input().split())
b=list(map(int, input().split()))
count=0
for _ in range(n):
    a=[int(i) for i in input().split()]
    sum1=[i*j for i,j in zip(a,b)]
    if sum(sum1)+c>0:count+=1
print(count)

Solution (Python):
N,M,C=map(int,input().split())
B=list(map(int,input().split()))
A=[]
for i in range (N):
	A.append(list(map(int,input().split())))
tmp=0
ans=0


for i in range (N):
	tmp=0
	for j in range (M):
		tmp+=A[i][j]*B[j]
	tmp+=C
	if tmp>0:
		ans+=1
print(ans)

Solution (Python):
n,m,c=map(int,input().split())
b=list(map(int,input().split()))
ans=0
for i in range(n):
    buf=0
    a=list(map(int,input().split()))
    for j in range(m):
        buf+=a[j]*b[j]
    if buf+c>0:
        ans+=1
print(ans)

Solution (Python):
N,M,C=map(int,input().split())
B=list(map(int,input().split()))
A=[list(map(int,input().split())) for _ in range(N)]
ls=[]
d=C
for i in range(N):
  for j in range(M):
    d+=A[i][j]*B[j]
  if d>0:
    ls.append(d)
  d=C
print(len(ls))

Solution (Python):



n, m, c = [int(x) for x in input().split()]
b = [int(x) for x in input().split()]
cnt = 0
for _ in range(n):
    a = [int(x) for x in input().split()]
    if sum([ea * eb for ea, eb in zip(a, b)]) + c > 0:
        cnt += 1
print(cnt)

Solution (Python):
N, M, C = map(int, input().split())
B = list(map(int, input().split()))

ans = 0
for i in range(N):
  A = list(map(int, input().split()))
  t = sum([a*b for a, b in zip(A, B)])
  if t + C > 0:
    ans += 1

print(ans)

Solution (Python):
n,m,c = map(int,input().split())
b = list(map(int,input().split()))
cnt = 0
for i in range(n):
    res=0
    a = list(map(int,input().split()))
    for j in range(m):
        res += a[j]*b[j]
    if res+c>0: cnt+=1
print(cnt)

Solution (Python):
def main():
    n, m, c = map(int, input().split())

    b_list = list(map(int, input().split()))

    num_list = []
    for _ in range(n):
        num_list.append(list(map(int,input().split())))

    count = 0

    for i in range(n):
        tmp = 0
        for j in range(m):
            tmp += num_list[i][j] * b_list[j]
        if tmp + c > 0:
            count += 1

    print(count)

if __name__ == '__main__':
    main()

Solution (Python):
n,m,c = map(int,input().split())
b = list(map(int,input().split()))
cnt = 0
for i in range(n):
    a = list(map(int,input().split()))
    ttl = 0
    for k in range(m):
        ttl += b[k]*a[k]
    if ttl +c >0:
        cnt += 1
print(cnt)

Solution (Python):
N,M,C =map(int,input().split())
B=list(map(int,input().split()))
A=[None]*N
for i in range(N):
    A[i]=list(map(int,input().split()))

ans=0
for i in range(N):
    S=0
    for j in range(M):
        S+=A[i][j]*B[j]
    if S+C>0:
        ans+=1
print(ans)

Solution (Python):




def main():
    N, M, C = map(int, input().split())
    B = list(map(int, input().split()))
    A = [list(map(int, input().split())) for _ in range(N)]
    count = 0

    for n in range(N):
        result = 0
        for m in range(M):
            result += B[m] * A[n][m]
        count += 1 if result + C > 0 else 0
    print(count)


if __name__ == "__main__":
    main()

Solution (Python):
n,m,c = map(int, input().split())
b=list(map(int, input().split()))
l=[]
for i in range(n):
    l.append(list(map(int, input().split())))

cnt=0
for i in range(n):
    ans=c
    for j in range(m):
        ans+=l[i][j]*b[j]
    if ans>0:
        cnt+=1
print(cnt)

Solution (Python):
N,B,C = map(int,input().split())
b = list(map(int,input().split()))
cnt = 0;
for i in range(N):
    g = 0;
    a = list(map(int,input().split()))
    for j in range(B):
        g+=a[j]*b[j]
    if g+C>0: cnt+=1;
print(cnt)

Solution (Python):
import numpy as np

N, M, C = map(int, input().split())
B = np.array(list(map(int, input().split())))
A = np.array([np.array(list(map(int, input().split()))) for _ in range(N)])

cnt = 0
for a in A:
    if np.sum(a*B) + C > 0: cnt += 1

print(cnt)

Solution (Python):
n,m,c = map(int, input().split())
b = list(map(int, input().split()))
point = 0
for i in range(n):
    a= list(map(int, input().split()))
    x = 0
    for j in range(m):
        x += a[j]*b[j]
    x += c
    if x > 0:
        point += 1
print(point)

Solution (Python):
n, m, c = map(int, input().split())
B = list(map(int, input().split()))

count = 0
for _ in range(n):
    A = list(map(int, input().split()))
    judge = c
    for a, b in zip(A, B):
        judge += a * b
    if judge > 0:
        count += 1

print(count)

Solution (Python):
n,m,c=map(int,input().split())
b=list(map(int,input().split()))
a=[[int(i) for i in input().split()] for l in range(n)]
d=0
for x in a:
    l=[p*q for p,q in zip(x,b)]
    if sum(l)+c>0:d+=1
print(d)

Solution (Python):
n, m, c = map(int, input().split())
b = list(map(int, input().split()))
ans = 0
for i in range(n):
    s = 0
    a = list(map(int, input().split()))
    for j in range(m):
        s += a[j] * b[j]
    if s + c > 0:
        ans += 1
print(ans)

Solution (Python):
N, M, C = map(int, input().split())
*B, = map(int, input().split())
AM = [list(map(int, input().split())) for _ in range(N)]

ans = 0
for am in AM:
    chk = 0
    for i in range(M):
        chk += am[i] * B[i]
    if chk + C > 0:
        ans += 1
print(ans)

Solution (Python):
n, m, c = map(int, input().split())
b = list(map(int, input().split()))
ans = 0
for i in range(n):
    a = list(map(int, input().split()))
    sum = c
    for j in range(m):
        sum += a[j] * b[j]
    if sum > 0:
        ans += 1
print(ans)

Solution (Python):
N,M,C = map(int, input().split())
B = list(map(int, input().split()))

ans = 0

for i in range(N):
    A = list(map(int, input().split()))
    check = C

    for i,j in zip(A,B):
        check = check + (i*j)

    if check > 0:
        ans = ans + 1

print(ans)

Solution (Python):
n,m,c = map(int,input().split())
b = list(map(int,input().split()))
ans = 0
for i in range(n):
    a = list(map(int,input().split()))
    x = 0
    for j in range(m):
        x += a[j]*b[j]
    if x+c>0: ans += 1
print(ans)

Solution (Python):
n,m,c=map(int,input().split())
b=list(map(int,input().split()))

cnt=0
sum=0
for i in range(n):
    a=list(map(int,input().split()))
    for j in range(m):
        sum+=a[j]*b[j]
    if sum + c > 0:
        cnt += 1
        sum=0
    else:
        sum=0
print(cnt)

Solution (Python):
n,m,c = [int(x) for x in input().split()]
b = [int(x) for x in input().split()]
a = []
for _ in range(n):
    tmp = [int(x) for x in input().split()]
    a.append(tmp)

cnt = 0
for i in range(n):
    tmplst = [a[i][x] * b[x] for x in range(m)]
    if sum(tmplst) + c > 0:
        cnt += 1

print(cnt)

Solution (Python):
n,m,c = map(int,input().split())
b = list(map(int, input().split()))
a = [list(map(int, input().split())) for i in range(n)]
ans = s = 0
for i in range(n):
    s=0
    for j in range(m):
        s += a[i][j] * b[j] 
    if s + c > 0:
        ans +=1
print(ans)

Solution (Python):
n, m, c = map(int, input().split())
b = list(map(int, input().split()))

count = 0
for i in range(n):
  a = list(map(int, input().split()))
  total = c 
  for j in range(len(b)):
    total += a[j] * b[j]

  if total > 0:
    count += 1

print(count)

Solution (Python):
N,M,C=map(int,input().split())
B=list(map(int,input().split()))
ans=0
for i in range(N):
    A=list(map(int,input().split()))
    judge=C
    for j in range(M):
        judge+=A[j]*B[j]
    if judge>0:
        ans+=1
        
print(ans)

Solution (Python):
import sys
 
stdin = sys.stdin
 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nan = lambda x: [na() for _ in range(x)]
ns = lambda: stdin.readline().rstrip()
nas = lambda: stdin.readline().split()

n, m, c = na()
b = na()
a = nan(n)

ans = 0
for i in range(n):
    s = 0
    for j in range(m):
        s += a[i][j] * b[j]
    if s + c > 0:
        ans += 1

print(ans)

Solution (Python):
n, m ,c = map(int, input().split())
b = list(map(int, input().split()))

a = [list(map(int, input().split())) for _ in range(n)]

ans = 0
for i in range(n):
    t = 0
    for j in range(m):
        t += a[i][j] * b[j]

    if t + c > 0:
        ans += 1

print(ans)

Solution (Python):
import numpy as np
N, M, C = map(int, input().split())
B = list(map(int, input().split()))
A = [np.array(list(map(int, input().split()))) for _ in range(N)]
answer = 0
for i in range(N):
    if sum(A[i]*B)+C > 0:
        answer += 1
print(answer)

Solution (Python):
n,m,c = map(int,input().split())
b_li = list(map(int,input().split()))
ans = 0
for i in range(n):
  a_li = list(map(int,input().split()))
  check = 0
  for k in range(m):
    check += a_li[k]*b_li[k]
  if check+c>0:
    ans += 1
print(ans)

Solution (Python):
import numpy as np
N, M, C = map(int, input().split())
B = np.array(list(map(int, input().split())))
A = []
count = 0
for i in range(N):
  a = np.array(list(map(int, input().split())))
  if np.sum(a * B) + C > 0:
    count += 1
print(count)

Solution (Python):
import numpy as np
N,M,C=map(int,input().split())
B=list(map(int,input().split()))
B=np.array(B)
L=[list(map(int,input().split())) for _ in range(N)]
L=np.array(L)
ans=0
for i in range(N):
    if B.dot(L[i])+C>0:
        ans+=1
print(ans)

Solution (Python):
n, m, c = map(int, input().split())
a = []
b = list(map(int, input().split()))

for _ in range(n):
    a.append(list(map(int, input().split())))

cnt = 0
for i in range(n):
    ans = c
    for j in range(m):
        ans += a[i][j] * b[j]
    if(ans > 0):
        cnt += 1
print(cnt)

Solution (Python):
import numpy as np
n, m, c = map(int, input().split())
b = np.array(tuple(map(int, input().split())))
ans = 0
for i in range(n):
    a = np.array(tuple(map(int, input().split())))
    if np.dot(a, b) + c > 0:
        ans += 1

print(ans)

Solution (Python):
import numpy as np
n,m,c = list(map(int,input().split()))
b = list(map(int,input().split()))
a = [list(map(int,input().split())) for _ in range(n)]

b = np.array(b)
ans = 0
for i in range(n):
    ch = 0
    t_a = np.array(a[i])
    if sum(t_a*b) + c > 0:
        ans += 1

print(ans)

Solution (Python):
n, m, c = map(int, input().split())

a=[]
b=[]
b = list(map(int, input().split()))

for _ in range(n):
    a.append(list(map(int, input().split())))
    
ans=0
for i in range(n):
    s=0
    for j, k in zip(a[i],b):
        s += j*k
    if s + c > 0:
        ans+=1

print(ans)

Solution (Python):
n, m, c = map(int, input().split())
b = [int(x) for x in input().split()]

a = []
for i in range(n):
    a.append([int(x) for x in input().split()])

ans = 0
for i in range(n):
    solve = c
    for j in range(m):
        solve += a[i][j] * b[j]
    if solve > 0:
        ans += 1

print(ans)

Solution (Python):
N, M, C = map(int, input().split())
Bz = [int(i) for i in input().split()]

cnt = 0
for _ in range(N):
    ans = 0
    Az = [int(i) for i in input().split()]
    for idx in range(M):
        ans += Az[idx] * Bz[idx]
    if ans + C > 0:
        cnt += 1

print(cnt)

Solution (Python):
import numpy as np
n,m,c=map(int,input().split())
*b,=map(int,input().split())
b=np.array(b)
a=[]
for i in range(n):
    *x,=map(int,input().split())
    a.append(x)
    
a=np.array(a)
cnt=0
for i in range(n):
    if np.sum(a[i]*b)+c >0:
      cnt += 1
print(cnt)

Solution (Python):
n,m,c=map(int,input().split())
b=list(map(int,input().split()))
ans=0
for i in range(n):
    a=list(map(int,input().split()))
    k=0
    for i in range(m):
        k+=a[i]*b[i]
    ans+=(k+c>0)
print(ans)

Solution (Python):
import sys
def input(): return sys.stdin.readline().rstrip()

def main():
    N, _, C = map(int, input().split())
    B = tuple(map(int, input().split()))

    ans = 0
    for _ in range(N):
        A = map(int, input().split())
        if sum([i * j for i, j in zip(A, B)]) + C > 0:
            ans += 1
    print(ans)

if __name__ == '__main__':
    main()

Solution (Python):
import sys
import numpy as np
def input(): return sys.stdin.readline().rstrip()

def main():
    N, _, C = map(int, input().split())
    B = tuple(map(int, input().split()))

    ans = 0
    for _ in range(N):
        A = map(int, input().split())
        if sum([i * j for i, j in zip(A, B)]) + C > 0:
            ans += 1
    print(ans)

if __name__ == '__main__':
    main()

Solution (Python):
import sys
import numpy as np
def input(): return sys.stdin.readline().rstrip()

def main():
    N, _, C = map(int, input().split())
    B = np.array(tuple(map(int, input().split())))
    A = [np.array(tuple(map(int, input().split()))) for _ in range(N)]

    ans = 0
    for a in A:
        if sum(a * B) + C > 0:
            ans += 1
    print(ans)

if __name__ == '__main__':
    main()

Solution (Python):
n, m, c = map(int, input().split())
b = list(map(int,input().split()))
a = [list(map(int, input().split())) for _ in range(n)]
o = 0

for i in range(n):
	s = 0
	for j in range(m):
		s += b[j] * a[i][j]

	s += c
	if s > 0:
		o += 1
	s = 0

print(o)

Solution (Python):
import sys

INPUT = lambda: sys.stdin.readline().rstrip()
MAP = lambda: map(int, INPUT().split())
LIST = lambda: list(map(int, INPUT().split()))

sys.setrecursionlimit(10 ** 9)


def main():
    N, M, C = MAP()
    B = LIST()
    A = [LIST() for _ in range(N)]

    cnt = 0
    for i in range(N):
        if sum([a*b for a, b in zip(A[i], B)]) + C > 0: cnt += 1

    print(cnt)


if __name__ == '__main__':
    main()

Solution (Python):

n,m,c=map(int,input().split())
b=list(map(int,input().split()))
a=[]
for i in range(n):
    x=list(map(int,input().split()))
    a.append(x)
ans=0
for i in range(n):
    s=0
    for j in range(m):
        s+=a[i][j]*b[j]
    s+=c
    if s>0:
        ans+=1
print(ans)

Solution (Python):
n, m, c = map(int, input().split())
bl = list(map(int, input().split()))
al = [list(map(int, input().split())) for _ in range(n)]

count = 0

for i in range(n):
    an = 0
    for j in range(m):
        an += al[i][j] * bl[j]

    if an + c > 0:
        count += 1

print(count)

Solution (Python):
N,M,C = map(int,input().split())
B = list(map(int,input().split()))

A = []
ans = 0
S = 0

for i in range(N):
    tmp = list(map(int,input().split()))
    for j in range(len(tmp)):
        S += tmp[j]*B[j]
    S += C

    if S>0:
        ans += 1
    
    S = 0

print(ans)

Solution (Python):
N, M, C = map(int, input().split())
B = list(map(int, input().split()))
A = []
for _ in range(N):
    a = list(map(int, input().split()))
    A.append(a)
    
count = 0
for i in range(N):
    ans = C
    for j in range(M):
        ans += A[i][j]*B[j]
    if ans > 0:
        count += 1
        
print(count)

Solution (Python):
N, M, C = map(int, input().split())
B = list(map(int, input().split()))
A = [[] for i in range(N)]
for i in range(N): A[i] = list(map(int, input().split()))
ans, sum = 0, 0
for i in range(N):
    sum = C
    for j in range(M):
        sum += A[i][j] * B[j]
    if (sum > 0): ans += 1
print(ans)

Solution (Python):
N, M, C = map(int, input().split())
B = [int(i) for i in input().split()]
ans = 0
for i in range(N):
    A = [int(i) for i in input().split()]
    if sum([a * b for a, b in zip(B, A)]) + C > 0:
        ans += 1

print(ans)

Solution (Python):
n,m,c = map(int, input().split())
b = list(map(int, input().split()))
count = 0
for i in range(n):
    a = list(map(int, input().split()))
    p = 0
    for j in range(m):
        p += a[j] * b[j]
    p += c
    if p > 0:
        count += 1
print(count)

Solution (Python):
import numpy as np

N, M, C = map(int, input().split())
B = np.array(list(map(int, input().split())))
ans = 0
for _ in range(N):
  A = np.array(list(map(int, input().split())))
  ABC = sum(A*B) + C
  if ABC > 0:
    ans += 1
print(ans)

Solution (Python):
N,M,C = map(int,input().split())
B = list(map(int,input().split()))
A = list()
for i in range(N):
	a = list(map(int,input().split()))
	A.append(a)

count = 0
for i in range(N):
	ans = 0
	for j in range(M):
		ans += A[i][j]*B[j]
	if ans + C > 0:
		count += 1
print(count)

Solution (Python):
import numpy as np

N,M,C=map(int,input().split())
B=input().split()
A=[]
Ans=[]
count=0
for i in range(M):
    B[i]=int(B[i])
for i in range(N):
    A.append(input().split())
for i in range(N):
    for j in range(M):
        A[i][j]=int(A[i][j])
B=np.array(B)
A=np.array(A)

Ans=np.dot(A,B)+C
Ans=Ans.tolist()
for i in range(len(Ans)):
    if Ans[i]>0:
        count=count+1
print(count)

Solution (Python):
n,m,c=map(int,input().split())
b=list(map(int,input().split()))
cnt = 0
for i in range(n):
  a=list(map(int,input().split()))
  p=c
  for j in range(m):
    p+=a[j]*b[j]
  if p>0:
    cnt += 1
print(cnt)

Solution (Python):
N, M, C = map(int, input().split())
B = list(map(int, input().split()))
ans = 0
for i in range(N):
    A = list(map(int, input().split()))
    res = 0
    for j in range(M):
        res += A[j]*B[j]
    res += C
    if res > 0:
        ans += 1
print(ans)

Solution (Python):
n,m,c = map(int,input().split())
b = list(map(int,input().split()))
count  = 0
for _ in range(n):
  a = list(map(int,input().split()))
  s = sum([x*y for x,y in zip(a,b)]) + c
  if s > 0:
    count += 1
print(count)

Solution (Python):
n, m, c = map(int, input().split())
b = list(map(int, input().split()))
a = [list(map(int, input().split())) for i in range(n)]

count = 0
for i in range(n):
    temp = a[i]
    s = 0
    for j in range(m):
        s += temp[j]*b[j]
    s += c
    if s > 0:
        count += 1

print(count)

Solution (Python):
n, m, c = map(int, input().split())
b = list(map(int, input().split()))
ans = 0
for i in range(n):
    now = c
    a = list(map(int, input().split()))
    for j in range(m):
        now += a[j] * b[j]
    ans += now > 0
print(ans)

Solution (Python):
import sys
import math
import itertools

N,M,C=list(map(int,input().split()))
b=list(map(int,input().split()))
count=0
for i in range(N):
	value=0
	a=list(map(int,input().split()))
	for j in range(M):
		value+=a[j]*b[j]
	if value+C>0:
		count+=1

print(count)

Solution (Python):
N,M,C=map(int,input().split())
B=list(map(int,input().split()))
A=[[] for _ in range(N)]

for i in range(N):
    A[i]=list(map(int,input().split()))
    
ans=0
for i in range(N):
    sc=C
    for j in range(M):
        sc+=A[i][j]*B[j]
    if sc>0:
        ans+=1
        
print(ans)

Solution (Python):
N,M,C=map(int,input().split())
B=list(map(int,input().split()))
ans=0
for i in range(N):
    A=list(map(int,input().split()))
    l=0
    for i in range(M):
        l+=A[i]*B[i]
    if l+C>0:
        ans+=1
print(ans)

Solution (Python):
n,m,c=map(int,input().split())
b=list(map(int,input().split()))
ans=0
for i in range(n):
  a=list(map(int,input().split()))
  l=0
  for i in range(m):
    l += a[i]*b[i]
  if l+c > 0:
    ans += 1
print(ans)

Solution (Python):
N,M,C=map(int,input().split())
B=list(map(int,input().split()))
A=[[] for _ in range(N)]

for i in range(N):
    A[i]=list(map(int,input().split()))
    
ans=0
for i in range(N):
    sc=C
    for j in range(M):
        sc+=A[i][j]*B[j]
    if sc>0:
        ans+=1
        
print(ans)

Solution (Python):
n,m,c = map(int,input().split())

bs = list(map(int,input().split()))

ans = 0

for i in range(n):
    total = 0
    As = list(map(int,input().split()))
    for j in range(m):
        total+=As[j]*bs[j]
    if total+c>0: 
        ans+=1

print(ans)

Solution (Python):
f  = lambda : map(int, input().split())
n, m, c = f()
l = list(f())
ans = 0
for i in range(n):
  ans += sum(a*b for a,b in zip(f(),l))+c>0
print(ans)

Solution (Python):
n, m, c = map(int, input().split())
lb = list(map(int, input().split()))
ans = 0
for i in range(n):
  la = list(map(int, input().split()))
  ans += sum(a*b for a,b in zip(la,lb))+c>0
print(ans)

Solution (Python):
n, m ,c =map(int, input().split())

b = list(map(int, input().split()))

y = 0
for i in range(n):
    a = list(map(int, input().split()))
    x = 0
    for j in range(m):
        x += a[j]*b[j]
    if x + c > 0:
        y +=1
print(y)

Solution (Python):

def ABC121B():
    N, M, C = map(int, input().split())
    B = list(map(int, input().split()))
    A = [list(map(int, input().split())) for _ in range(N)]
    ans = 0
    for L in A:
        s = 0
        for a, b in zip(L, B):
            s += a * b
        if s + C > 0:ans += 1
    print(ans)

ABC121B()

Solution (Python):
n,m,c=map(int,input().split())
b=list(map(int,input().split()))
ans=0
for i in range(n):
    a=list(map(int,input().split()))
    k=0
    for i in range(m):
        k+=a[i]*b[i]
    ans+=(k+c>0)
print(ans)

Solution (Python):
n, m, c = map(int,input().split())
bList = list(map(int,input().split()))
aList = []
for i in range(n):
  aList.append(list(map(int,input().split())))

sorce = 0
for i in range(len(aList)):
  result = 0
  for j in range(m):
   result += aList[i][j]*bList[j]
  if result+c > 0:
    sorce += 1 

print(sorce)

Solution (Python):
import numpy as np

N, M, C = map(int, input().split())
B = list(map(int, input().split()))
A = [list(map(int, input().split())) for _ in range(N)]
ans = 0

for i in range(N):
    score = np.dot(A[i], B) + C
    if score > 0:
        ans += 1
    
print(ans)

Solution (Python):
n,m,c = map(int, input().split())
b = list(map(int, input().split()))
A = [list(map(int, input().split())) for i in range(n)]
cnt = 0
for i in range(n):
    if sum(list([a*b for (a,b) in zip(A[i],b)]))+c > 0:
        cnt += 1
print(cnt)

Solution (Python):
def main():
    N, M, C = map(int, input().split(" "))
    B = list(map(int, input().split(" ")))
    result = 0
    for _ in range(N):
        A = list(map(int, input().split(" ")))
        tmp = C
        for i in range(M):
            tmp += A[i] * B[i]
        if tmp > 0:
            result += 1
    print(result)


if __name__ == '__main__':
    main()

Solution (Python):
n,m,c=map(int,input().split())
b= [int(x) for x in input().split()]
ans=0

for i in range(n):
    a=[int(x)*y for x, y in zip(input().split(), b)]
    if(sum(a)+c>0):
        ans+=1
print(ans)

Solution (Python):
"""
author : halo2halo
date : 15, Jan, 2020
"""

import sys
import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

N, M, C = map(int, readline().split())
B = np.array(readline().split(), dtype=np.int64)
A = [np.array(readline().split(), dtype=np.int64) for _ in range(N)]

A = A * B
ans = 0
for i in A:
    if sum(i) + C > 0:
        ans += 1
print(ans)

Solution (Python):
import sys
import numpy as np

n, m, c = map(int, sys.stdin.readline().split())
b = np.array(sys.stdin.readline().split(), dtype=np.int64)
a = np.array(sys.stdin.read().split(), dtype=np.int64).reshape(n, m)

def main():
    res = np.sum(a * b, axis=1) + c
    return np.count_nonzero(res > 0)

if __name__ == '__main__':
    ans = main()
    print(ans)

Solution (Python):
n, m, c = map(int, input().split())
b = [int(x) for x in input().split()]

ok = 0
for i in range(n):
   a = [int(x)*y for x, y in zip(input().split(), b)]
   if (sum(a) + c > 0):
      ok += 1
print(ok)

Solution (Python):

n,m,c = map(int,input().split())
b = list(map(int,input().split()))
a = []
count= 0

for i in range(n):
    a = list(map(int,input().split()))
    sum = c

    for j in range(m):
        sum += b[j]*a[j]

    if sum > 0:
        count += 1
    else:
        pass

print(count)

Solution (Python):
N, M, C = map(int, input().split())
B = list(map(int, input().split()))
A = [None for i in range(N)]

for i in range(N):
  A[i] = list(map(int, input().split()))

ans = 0

for i in range(N):
  tmp = 0
  for j in range(M):
    tmp += A[i][j] * B[j]
  tmp += C
  
  if tmp > 0:
    ans += 1

print(ans)

Solution (Python):
N, M, C = map(int, input().split())
B=list(map(int, input().split()))
answer=0
for i in range(N):
  A=list(map(int, input().split()))
  sum=C
  for j in range(M):
    sum+=B[j]*A[j]
  if sum>0:
    answer+=1
print(answer)

Solution (Python):
N,M,C=map(int,input().split())
B=list(map(int,input().split()))
count=0
for i in range(N):
    A=list(map(int,input().split()))
    p=C
    for j in range(M):p+=A[j]*B[j]
    if p>0:count+=1
print(count)

Solution (Python):
N, M, C = map(int, input().split())
B = list(map(int, input().split()))
A = [[int(j) for j in input().split()] for i in range(N)]
ans = 0
for a in A:
    count = 0
    for i in range(M):
        count += a[i] * B[i]
    if count + C > 0:
        ans += 1
print(ans)

Solution (Python):
n,m,c=map(int,input().split())
B = list(map(int,input().split()))
A = [list(map(int,input().split())) for i in range(n)]

ans = 0 
for row in A:
    t = c    
    for a,b in zip(row,B):
        t += a*b
    if t > 0 :
        ans += 1
print(ans)