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.



Sample input:
2 3 -10
1 2 3
3 2 1
1 2 2


Sample output:
1

Submission status: Accepted

Solution code:
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()))
    sum = 0
    for a, b in zip(A, B):
        sum += a*b
    sum += C
    if sum > 0:
        cnt += 1
print(cnt)

Submission status: Accepted

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

for i in a:
    add = c
    for j in range(m):
        add += i[j]*b[j]
    if add > 0:
        ans.append(add)

print(len(ans))

Submission status: Accepted

Solution code:
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 = 0
    for j in range(M): t += B[j]*A[j]
    if t + C > 0: ans += 1
print(ans)

Submission status: Accepted

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

for n in range(N):
    sum = C
    A = list(map(int, input().split()))
    for m in range(M):
        sum += A[m]*B[m]
    if sum > 0:
        cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
# B - Can you solve this?(ABC121)
N,M,C=map(int, input().split())
B=list(map(int, input().split()))
A=[]
S=C
x=0
for i in range(N):
    A.append(list(map(int, input().split())))
for i in range(N):
    S=C
    for v in range(M):
        S+=A[i][v]*B[v]
        if (v==M-1) and(S>0):
            x+=1
print(x)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()))
    s= C
    for j in range(M):
        s += a[j] * B[j]
    if s > 0:
        ans += 1

print(ans)

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

Solution code:
N,M,C = map(int,input().split())
Bn = list(map(int,input().split()))
ans=0
nums = []
for n in range(N):
    As = list(map(int,input().split()))
    if sum([x*y for (x,y) in zip(As,Bn)])+C>0:
        ans+=1
print(ans)

Submission status: Accepted

Solution code:
n,m,c=map(int,input().split())
b_list=list(map(int,input().split()))
List=[list(map(int,input().split())) for i in range(n)]

counter=0
for i in range(n):
    sum=0
    for j in range(m):
        sum+=b_list[j]*List[i][j]

    if sum+c>0:
        counter+=1

print(counter)

Submission status: Accepted

Solution code:
import numpy as np
N, M, C = map(int, input().split())
B = list(map(int, input().split()))

B = np.array(B).reshape(1, M)

count = 0

for i in range(N):
    A = list(map(int, input().split()))
    A = np.array(A).reshape(1, M)
    if np.dot(B, A.T)+C > 0:
        count = count + 1

print(count)

Submission status: Accepted

Solution code:
s = 0
def concat(a, b):
    res = 0
    for i in range(len(a)):
        res += a[i] * b[i]
    return res
N, M, C = map(int, input().split())
B = list(map(int, input().split()))
for _ in range(N):
    A = list(map(int, input().split()))
    s += concat(A, B) + C > 0
print(s)

Submission status: Accepted

Solution code:
n,m,c=map(int,input().split())
B=list(map(int, input().split()))
ans=0
for _ in range(n):
    A=list(map(int, input().split()))
    t=c
    for i,j in zip(A,B):t+=i*j
    if t>0:ans+=1
print(ans)

Submission status: Accepted

Solution code:
import numpy as np
N, M, C= map(int, input().split()) 
B=np.array(list(map(int, input().split()) ))
A=np.array([list(map(int, input().split())) for _ in range(N)])
print(np.count_nonzero(np.dot(B, A.T)+C >0))

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
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 0 < p:
    count += 1
print(count)

Submission status: Accepted

Solution code:
N,M,C = map(int,input().split())
b_nums = [int(i) for i in input().split()]
count = 0
for j in range(N):
    a_nums = [int(k) for k in input().split()]
    eq = 0
    for m in range(M):
        eq += a_nums[m]*b_nums[m]
    if eq > -C:
        count += 1
print(count)

Submission status: Accepted

Solution code:
N, M, C = map(int, input().split())

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

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

print(ans)

Submission status: Accepted

Solution code:
N,M,C = map(int, input().split())
B = list(map(int, input().split()))
count = 0
for n in range(N):
    A = list(map(int, input().split()))
    total = C
    for a,b in zip(A,B):
        total += a*b
    if total > 0:
        count += 1
print(count)

Submission status: Accepted

Solution code:
n, m, c = map(int, input().split())
b = [int(inp) for inp in input().split()]
cnt = 0

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

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n,m,c=map(int,input().split())
B=list(map(int,input().split()))
a=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:
        a+=1
print(a)

Submission status: Accepted

Solution code:
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) for x in input().split()]
    key = c
    for j in range(m):
        key += a[j]*b[j]
    if key > 0:
        ans += 1
print(ans)

Submission status: Accepted

Solution code:
n,m,c = list(map(int, input().split()))
Bs = list(map(int, input().split()))
As =[]
for i in range(n):
	As.append(list(map(int, input().split())))

def check(alist,blist, c):
	num = 0
	for jj in range(len(alist)):
		num += alist[jj] * blist[jj]
	num += c
	return num
cnt = 0
for i in range(n):
	ans = check(As[i],Bs, c)
	if ans > 0:
		cnt += 1
print(cnt)

Submission status: Accepted

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

print(count)

Submission status: Accepted

Solution code:
import numpy as np
N,M,C = map(int,input().split())
BList= list(map(int,input().split()))
X = np.array(BList)

count = 0
for _ in range(N):
    src = list(map(int,input().split()))
    Y = np.array(src)
    if np.dot(X,Y)+C > 0:
        count += 1

print(count)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# https://atcoder.jp/contests/abc121/tasks/abc121_b
# B - Can you solve this?

n, m, c = list(map(int, input().split()))
b_list = list(map(int, input().split()))
a_list_list = []

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

count = 0

for a_list in a_list_list:
    total = sum([a * b for a, b in zip(a_list, b_list)]) + c
    if total > 0:
        count += 1

print(count)

Submission status: Accepted

Solution code:
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()))
    ab = [aa*bb for aa,bb in zip(a,b)]
    if (sum(ab) + c) > 0:count+=1
print(count)

Submission status: Accepted

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

for i in range(n):
    for j in range(m):
        s[i]=s[i]+a[i][j]*b[j]
    s[i]=s[i]+c
print(sum(x>0 for x in s))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()))
	tokuten = 0
	for j in range(m):
		tokuten += b[j]*a[j]
	if tokuten > -c:
		count += 1

print(count)

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np

n, m, c = map(int, input().split(' '))
b = np.array(list(map(int, input().split(' '))))
cnt = 0
for _ in range(n):
    a = np.array(list(map(int, input().split(' '))))
    if a.dot(b) + c > 0:
        cnt += 1
print(cnt)

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

Solution code:
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()))
    d = c
    for j in range(m):
        d += a[j] * b[j]
    if (d > 0):
        ans += 1
print(ans)

Submission status: Accepted

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

count = 0
for low in range(n):
    Sum = c
    for col in range(m):
        Sum += A[low][col]*B[col]

    if Sum > 0:
        count += 1

print(count)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

Solution code:
import numpy as np
N,M,C = map(int,input().split())
B = np.array(list(map(int,input().split())))
A = []
for i in range(N):
  A.append(list(map(int,input().split())))
A = np.array(A)
print(sum(x+C>0 for x in sum((B*A).T)))

Submission status: Accepted

Solution code:
N,M,C=map(int,input().split())
B=list(map(int,input().split()))
a=[]
x=0
for i in range(N):
  A=list(map(int,input().split()))
  for h in range(M):
    x+=A[h]*B[h]
  sum=x+C
  if sum>0:
    a.append(sum)
  sum=0
  x=0
  A=[]
print(len(a))

Submission status: Accepted

Solution code:
import sys
input=sys.stdin.readline

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

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

Submission status: Accepted

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

def prod(a,b,init=0):
  total=init
  for a_,b_ in zip(a,b):
    total+=a_*b_  
  return total

cnt=0
for i in range(n):
  a=list(map(int,input().split()))
  if 0 < prod(a,b,init=c):
    cnt+=1
print(cnt)

Submission status: Accepted

Solution code:
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()))
  total=0
  for a_,b_ in zip(a,b):
    total+=a_*b_
  if 0 < total+c:
    cnt+=1
print(cnt)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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()))
  s=0
  for j in range(m):
    s+=a[j]*b[j]
  if s+c>0:
    ans+=1
print(ans)

Submission status: Accepted

Solution code:
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 a in A:
    tmp = 0
    for i in range(m):
        tmp += a[i] * B[i]
    tmp += c
    if tmp > 0:
        ans += 1
print(ans)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

# output
print(ans)

Submission status: Accepted

Solution code:
# B - Can you solve this?
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()))
    _sum = sum([_a*_b for _a, _b in zip(a, b)]) + c
    if _sum > 0:
        cnt += 1
print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

sum=0
count=0

for i in range(0,n):
    A=[int(n) for n in input().split()]
    for j in range(0,m):
        sum+=A[j]*B[j]
    if sum+c>0:
        count+=1
    sum=0

print(count)

Submission status: Accepted

Solution code:
def solve():
    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 data in a:
        num = sum([ai * bi for ai, bi in zip(data, b)]) + c
        if num > 0:
            count += 1
    return count


if __name__ == "__main__":
    print(solve())

Submission status: Accepted

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

totalcol = 0
for n in range(N):
    ex = sum([ A[n][m] * B[m] for m in range(M) ])
    ex += C
    totalcol += (ex > 0)

print(totalcol)

Submission status: Accepted

Solution code:
import math
import copy

inputa = input().split()
# inputb = input().split()
# inputc = input().split()

a = int(inputa[0])
b = int(inputa[1])
c = int(inputa[2])

inputb = input().split()
inputbint = [int(x) for x in inputb]
# inputList = list(b)

# x = int(inputb[0])
# y = int(inputb[1])

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

# inputList = [int(n) for n in inputList]

# b = [int(n) for n in inputb]
# c = [int(n) for n in inputc]

cnt = 0
sum = 0
for i in range(a):
    sum = c
    for j in range(len(inputbint)):
        sum += inputbint[j]*inputList[i][j]
    if sum > 0:
        cnt += 1

print(cnt)

Submission status: Accepted

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

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

print(d)

Submission status: Accepted

Solution code:
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()))
    if sum([x*y for x,y in zip(a,b)])+c>0:cnt+=1
print(cnt)

Submission status: Accepted

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

list = [input() for _ in range(N)]

count = 0
for l in list:
  sum = 0
  for index, num in enumerate(l.split()):
    sum += int(num) * B[index]
  sum += C
  if sum > 0:
    count += 1
print(count)

Submission status: Accepted

Solution code:
N,M,C = map(int,input().split())
B = list(map(int,input().split()))
D = []
E = 0
ans = 0

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

print(ans)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3


def solve(N, M, C, B, A):
    ans = 0
    for Ai in A:
        if sum(Aij * Bi for Aij, Bi in zip(Ai, B)) + C > 0:
            ans += 1
    return ans


if __name__ == '__main__':
    N, M, C = map(int, input().split())
    B = list(map(int, input().split()))
    A = []
    for _ in range(N):
        Ai = list(map(int, input().split()))
        A.append(Ai)

    ans = solve(N, M, C, B, A)
    print(ans)

Submission status: Accepted

Solution code:
n, m, c = map(int, input().split())
b_l = list(map(int, input().split()))
ans = []
for i in range(n):
    a_l = list(map(int, input().split()))
    if sum(a*b for a, b in zip(a_l, b_l)) + c > 0:
        ans.append(i)
print(len(ans))

Submission status: Accepted

Solution code:
import numpy as np

n, m, c = map(int, input().split())
b = np.array(list(map(int, input().split())))
ans = []
for i in range(n):
    a = np.array(list(map(int, input().split())))
    if b.dot(a)+c > 0:
        ans.append(i+1)
print(len(ans))

Submission status: Accepted

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

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

print(count)

Submission status: Accepted

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

cnt = 0
for i in a:
  if sum([j * k for j, k in zip(i, b)]) + c > 0:
    cnt += 1
print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N,M,C=map(int,input().split())
B=list(map(int,input().split()))
right_answer=0
for i in range(N):
  A=list(map(int,input().split()))
  if sum(a*b for a,b in zip(A,B))+C>0:
    right_answer+=1
print(right_answer)

Submission status: Accepted

Solution code:
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()))
    ans = 0
    for j in range(m):
        ans += A[j]*b[j]
    ans = ans + c
    if ans > 0:
        count+= 1
print(count)

Submission status: Accepted

Solution code:
n, m, c = map(int, input().split())
bL = list(map(int, input().split()))
ans = 0
for i in range(n):
    aL = list(map(int, input().split()))
    sum_ab = 0
    for j in range(m):
        sum_ab += aL[j]*bL[j]
    if sum_ab > (-1)*c:
        ans += 1
print(ans)

Submission status: Accepted

Solution code:
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):
  cc = 0
  for j in range(m):
    cc += b[j]*a[i][j]
  if cc + c > 0:
    cnt += 1
print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import numpy as np
n,m,c = map(int,input().split())
bl = list(map(int,input().split()))
count = 0
for _ in [0]*n:
  al = list(map(int,input().split()))
  if np.dot(al,bl)+c > 0:
    count+=1
print(count)

Submission status: Accepted

Solution code:
N, M, C = map(int, input().split())

import numpy as np
A = np.zeros((N,M))
B = list(map(int, input().split()))

for i in range(N):
  A[i] = list(map(int, input().split()))
D = np.dot(A, B) + C
cnt = 0
for i in range(N):
  if D[i] > 0: cnt+= 1
print (cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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):
    D = 0
    for j in range(m):
        D += a[i][j] * b[j]
    if D + c > 0:
        ans += 1

print(ans)

Submission status: Accepted

Solution code:
n,m,c = map(int,input().split())
b = list(map(int,input().split()))
a = list(list(map(int,input().split())) for _ in range(n))

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

print(answer)

Submission status: Accepted

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

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

cnt = 0
for i in range(n):
    calc = 0
    for j in range(m):
        calc += a[i][j] * b[j]
    if calc + c <= 0:
        pass
    else:
        cnt += 1
print(cnt)

Submission status: Accepted

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

cnt = 0
for i in A:
    tmp = 0
    for m, n in zip(B, i):
        tmp += m*n
    if tmp + C > 0:
        cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
n,m,c=map(int,input().split())
b=list(map(int,input().split()))
def sol(x,y,z):
  l=len(y)
  par=0
  for i in range(l):
    par+=x[i]*y[i]
  if(par+z>0):
    return 1
  else:
    return 0

ans=0
for i in range(n):
  a=list(map(int,input().split()))
  ans += sol(a,b,c)
print(ans)

Submission status: Accepted

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

cnt=0

for i in range(n):
  total = 0
  #配列aを取得
  a = list(map(int,input().split()))
  #totalにaとbの計算結果を格納
  for j in range(m):
    total += a[j] * b[j]

  if total > -c:
    cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
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 j in range(N):
	if sum((A[j][k])*(B[k]) for k in range(M))+C>0:
		count=count+1
print(count)

Submission status: Accepted

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

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

#print(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)

Submission status: Accepted

Solution code:
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 i in range(N):
    temp=0
    for j in range(M):
        temp += A[i][j]*B[j]
    if temp+C>0:
        ans +=1
print(ans)

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
n,m,c=map(int,input().split())
ans=0
b=list(map(int,input().split()))

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

Submission status: Accepted

Solution code:
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 = 0
    for j in range(m):
        check += a[j] * b[j]
    if check + c > 0:
        ans += 1
print(ans)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()))
    d = c
    for j in range(m):
        d += b[j]*a[j]
    if d>0:
        ans += 1

print(ans)

Submission status: Accepted

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

print(d)

Submission status: Accepted

Solution code:

n, m, c = map(int, input().split())
Bs = list(map(int, input().split()))
count = 0
for i in range(n):
    As = list(map(int, input().split()))
    if sum(map(lambda a, b: (a*b), Bs, As)) > -c:
        count += 1

print(count)

Submission status: Accepted

Solution code:
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()))
    temp = c
    for j in range(m):
        temp += a[j] * b[j]
    if temp > 0:
        count += 1
print(count)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N,M,C = (int(i) for i in input().split()) 
B = [int(i) for i in input().split()]

a = 0
ans = 0

for i in range(N):
	a = 0
	A = [int(i) for i in input().split()]
	for g in range(M):
		a += A[g]*B[g]
	if a+C>0:
		ans+=1
print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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