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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def resolve():
    cnt=0
    n,m,c=map(int, input().split())
    b_list=list(map(int, input().split()))
    for i in range(n):
        a_list=list(map(int, input().split()))
        for x in range(m):
            siki=0
            siki+=a_list[i]*b_list[i]
            if siki>-c:
                cnt+=1
    print(cnt)
resolve()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#coding:utf-8
import sys,os
from collections import defaultdict, deque
from math import gcd, ceil, floor
sys.setrecursionlimit(10**6)
write = sys.stdout.write
dbg = (lambda *something: print(*something)) if 'TERM_PROGRAM' in os.environ else lambda *x: 0
def main(given=sys.stdin.readline):
    input = lambda: given().rstrip()
    LMIIS = lambda: list(map(int,input().split()))
    II = lambda: int(input())
    MOD = 10**9+7

    N,M,C = LMIIS()
    B = LMIIS()
    A = [LMIIS() for _ in range(N)]

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

    

if __name__ == '__main__':
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N, M, C = map(int, input().split())
B = list(map(int, input().split()))
a = 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:
        a += 1
        sum = 0
    else :
        sum = 0
print(a)

Submission status: Runtime Error

Solution code:
N, M, C = map(int, input().split())
B = list(map(int, input().split()))
a = 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:
        a += 1
        sum = 0
    else :
        sum = 0
print(a)

Submission status: Runtime Error

Solution code:
N, M, C = map(int, input().split())
B = list(map(int, input().split()))
a = 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:
        a += 1
        sum = 0
    else :
        sum = 0
print(a)

Submission status: Runtime Error

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

Submission status: Runtime Error

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,list(input()))) for i in range(N)])

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

Submission status: Runtime Error

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,list(input()))) for i in range(N)])

ans = 0
for i in range(M):
  if np.sum(A[:, i] * B) + C > 0:
    ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair< int, int >;

int main() {
    int N, M, C;
    cin >> N >> M >> C;
    vector< int > B(M);
    rep(i, M) cin >> B[i];
    vector< vector< int > > A(N, vector< int >(M));
    rep(i, N) rep(j, M) cin >> A[i][j];

    int ans = 0;
    rep(i, N) {
        int res = C;
        rep(j, M) { res += A[i][j] * B[j]; }
        if (res > 0) {
            ++ans;
        }
    }
    cout << ans << endl;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# from math import factorial,sqrt,ceil
# from itertools import permutations as permus
# from fractions import gcd
# from collections import deque,Counter
# from decimal import Decimal, getcontext
# # getcontext().prec = 1000
# # eps = Decimal(10) ** (-100)

import numpy as np
# from scipy.sparse.csgraph import shortest_path, dijkstra, floyd_warshall, bellman_ford, johnson
# from scipy.sparse import csr_matrix

# strlist = "abcdefghijklmnopqrstuvwxyz"
n,m,c = map(int,input().split())
B = np.array(input().split(),dtype=np.int64)
times = n
table = []
for _ in range(times):
    table.append(list(map(int,input().split()))) # 行列の場合
A = np.array(table)

lis = np.dot(A,B) +c
ans = np.bincount(lis > 0)[1]

print(ans)
# print(*ans)   # unpackして出力。間にスペースが入る
# for row in board:
#     print(*row,sep="")    #unpackして間にスペース入れずに出力する
# print("{:.10f}".format(ans))
# print("{:0=10d}".format(ans))

Submission status: Runtime Error

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=0
  for j,k in zip(A,B):
    d+=A*B
  if d>-C:
    ans+=1
print(ans)

Submission status: Runtime Error

Solution code:
N, M, C = map(int, input().split())                                                                                                                         
B = list(map(int, input().split()))
 
S = [[0]*M for i in range(N)]
for i in range:
    S[i] = list(map(int, input().split()))
 
b = 0
 
for i in range:
    a = 0
    for ii in range(M):
        a += S[i][ii] * B[ii]
    a += C
    if a > 0:
        b += 1
 
print(str(b))

Submission status: Runtime Error

Solution code:
N, M, C = map(int, input().split())
B = list(map(int, input().split()))
 
S = [[0]*M for i in range(N)]
for i in range:
    S[i] = list(map(int, input().split()))
 
b = 0
 
for i in range:
    a = 0
    for ii in range(M):
        a += S[i][ii] * B[ii]
    a += C
    if a > 0:
        b += 1
 
print(str(b))

Submission status: Runtime Error

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

b = 0
 
for i in range(N):
    a = 0
    for ii in range(M):
        a += S[i][ii] * B[ii]
    a += C
    if a > 0:
        b += 1
print(str(b))

Submission status: Runtime Error

Solution code:
N, M, C = map(int, input().split())                                                                                                                         
  2 B = list(map(int, input().split()))
  3  
  4 S = [[0]*M for i in range(N)]
  5 for i in range(N):
  6     S[i] = list(map(int, input().split()))
  7  
  8 b = 0
  9  
 10 for i in range(N):
 11     a = 0
 12     for ii in range(M):
 13         a += S[i][ii] * B[ii]
 14     a += C
 15     if a > 0:
 16         b += 1
 17  
 18 print(str(b))

Submission status: Runtime Error

Solution code:
N, M, C = map(int, input().split())
  2 B = list(map(int, input().split()))
  3  
  4 S = [[0]*M for i in range(N)]
  5 for i in range(N):                                                                                                                                          
  6     S[i] = list(map(int, input().split()))
  7  
  8 b = 0
  9  
 10 for i in range(N):
 11     a = 0
 12     for ii in range(M):
 13         a += S[i][ii] * B[ii]
 14     a += C
 15     if a > 0:
 16         b += 1
 17  
 18 print(str(b))

Submission status: Runtime Error

Solution code:
N, M = list(map(int, input().split()))
K, A = [0] * N, [0] * N
for i in range(N):
    K[i], *A[i] = list(map(int, input().split()))
k = set(i for i in range(1, M + 1))
ki = k.intersection(*A)
print(len(ki))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
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()))
  if sum(a*b) + c > 0
  	count += 1
print(count)

Submission status: Runtime Error

Solution code:
import numpy as np
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
l = np.matmul(b,np.transpose(a)) + c
for i in l:
    if i>0:
        cnt += 1
print(cnt)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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()))
  cnt += int(sum(A[i] * B[i] for i in range(M), C) > 0)
print(cnt)

Submission status: Runtime Error

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_i = list(map(int, input().split()))
    A.append(A_i)
A = np.array(A)

#ans = list((A@B) > -C).count(True)
ans = list((np.matmul(A, B)) > -C).count(True)

print(ans)

Submission status: Runtime Error

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_i = list(map(int, input().split()))
    A.append(A_i)
A = np.array(A)

ans = list((A@B) > -C).count(True)
print(ans)

Submission status: Runtime Error

Solution code:
a

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def main():
    import numpy as np
    n, m, c = map(int, readline().split())
    ba = list(map(int, read().split()))
    a = np.array(ba[m:]).reshape((n,m))
    b = np.array(ba[:m])

    print(sum(np.dot(a,b)+c>0))

if __name__ == "__main__":
    main()

Submission status: Runtime Error

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)
ans = list(a @ b)
cnt = 0
for i in range(n):
    if ans[i] + c > 0: cnt += 1
print(cnt)

Submission status: Runtime Error

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

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

print(cnt)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(A)

Submission status: Runtime Error

Solution code:
N , M ,C  = map(int,input().split())
B = 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: Runtime Error

Solution code:
N, M, K =map(int,input().aplit())
bases = list(map(int,input().split()))
ans=0

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

Submission status: Runtime Error

Solution code:
N, M, K =map(int,input().aplit())
bases = list(map(int,input()))
ans=0

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

Submission status: Runtime Error

Solution code:
N, M, K =map(int().input().aplit())
bases = list(map(int,input()))
ans=0

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

def mul(x, y):
  ret = 0
  for i in range(len(x)):
    ret += x[i]*y[i]

ans = 0
for i in range(n):
  a = list(map(int, input().split()))
  if mul(a, b) + c > 0:
    ans += 1

print(ans)

Submission status: Runtime Error

Solution code:
n,m,c = map(int,input().split())
b = list(map(int,input().split()))
a = [input().split() for _ in range(n)]
result_num = 0
for idx in range(n):
    for y,z in zip(a[idx],b):
        _sum += int(y)*int(z)
    _sum += c
    if _sum > 0:
        result_num +=1
    _sum = 0
    
print(result_num)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

count=0

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
b = list(map(int, input().split()))
codes = [list(map(int, input().split())) for _ in range(N)]

res = 0
for code in codes:
    s = C    
    for i in range(M):
        s += (code[i] * b[i])
    if s > 0:
        res += 1

print(res)

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import numpy as np

Tmp = []
Tmp = input().rstrip().split(' ')

nN = int(Tmp[0])
nM = int(Tmp[1])
nC = int(Tmp[2])
nAns = 0
ListA = []
ListB = []
ListB += list(map(int,input().split()))
nAns = 0

for i in range(nN):
  ListA += list(map(int,input().split()))
  nTmp = np.dot(ListA, ListB.T)
  nTmp += nC
  if nTmp > 0:
    nAns += 1

print(nAns)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
I=lambda:map(int,input().split())
n,m,c=I()
b=list(I())
A=[];c=0
A+=list(I())
for a in A:
  d=0
  for i,j in zip(b,a):
    d+=i*j
  c+=(c+d>0)
print(c)

Submission status: Runtime Error

Solution code:
gt

Submission status: Runtime Error

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):
    total = 0
  for j in range(m):
      total+=B[j]*A[i][j]
  total+=c
  if total>0:
          cnt+=1  
print(cnt)

Submission status: Runtime Error

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

correct_answer = 0

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

print(correct_answer)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

import numpy as np

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

ans = sum((A @ B + C) > 0)

print(ans)

Submission status: Runtime Error

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)]
Count=0
for t in a:
    for i in range(m):
        Sum+=t[i]*b[i]
    if Sum+c>0:
        Count+=1
    Sum=0
print(Count)

Submission status: Runtime Error

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