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()))
    for j in range(m):
        Sum+=a[j]*b[j]
    if Sum>-1*c:
        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()))
a = []
ans = 0
for i in range(n):
    arr = list(map(int,input().split()))
    a.append(arr)
for i in a:
    tmp = c
    for j in range(n+1):
        tmp += i[j]*b[j]
    if tmp > 0:ans+=1
print(ans)

Submission status: Runtime Error

Solution code:
n, m, c = map(int, input().split())
#listを作成
B = list(map(int, input().split()))
count = 0
#Aの値を受け取る
for i in range(n):
    a = list(map(int, input().split()))
    s = a[0] * B[0] + a[1] * B[1] + a[2] * B[2] + c
    if s > 0:
        count = count + 1
    else:
        pass

print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import numpy as np

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

A[0:] = list(map(int, input().split())) 
A[1:] = list(map(int, input().split())) 

cnt = 0
z = 0
for A_line in A:
    for i,a in enumerate(A_line):
        z = z + a*B[i]
    if z+C >0:
        cnt += 1
    z = 0

print(cnt)

Submission status: Runtime Error

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)]
count = 0
ans = 0
for j in range(n):
    for i in range(m):
        count += b[i]*a[i]
        if count>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([int(i) for i in input().split()])
ans = 0
for ii in range(n):
    a = np.array([int(i) for i in input().split()])
    if (a@b + c) > 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([int(i) for i in input().split()])
ans = 0
for i in range(n):
    a = np.array([int(i) for i in input().split()])
    if (a@b + c) > 0:
        ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
n,m,c = int(map,input().split())
b = int(map,input().split())
count = 0
for i in range(n):
    sum = 0
    a = int(map, input().split())
    for j in range(m):
        sum += a[j] * b[j]
    sum += c
    if sum > 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 _ in range(n)]
count=0
for i in range(n-1):
    for j in range(m-1):
        total+=b[j]*a[i][j]
    if total>-c:
        count+=1
print(count)

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(M):
  A = list(map(int, input().split()))
  tmp = 0
  for j in range(N):
    tmp += A[j]*B[j]
  tmp += C
  if tmp > 0:
    cnt += 1
    
print(cnt)

Submission status: Runtime Error

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

count = 0
for i in range(N):
  temp = [int(x) for x in input().split()]
  total = [B[i]*temp[i] for i in range(M)]
  if(total > 0 ):
    count+=1

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

print(ans)

Submission status: Runtime Error

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

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

print(ans)

Submission status: Runtime Error

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

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

print(ans)

Submission status: Runtime Error

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

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

print(ans)

Submission status: Runtime Error

Solution code:
N, M, C = map(int , input().strip().split())
B = list(map(int , input().strip().split()))
l = [];cnt = 0
for i in range(m):
  g = list(map(int , input().strip().split()))
  l.append(g)

for i in range(m):
  sums = 0
  for j in range(n):
    sums += l[i][j]*B[j]
  if sums + C >:
    cnt+=1
print(cnt)

Submission status: Runtime Error

Solution code:
import numpy as np
N,M,C = (int(j) for j in input().split())
B = [int(j) for j in input().split()]
list = [[0]* M]*N
for j in range(0,N):
        list[j] = [int(k) for k in input().split()]
count = 0
for j in range(0,N):
    if np.sum(np.array(list[j]) * np.array(B)) C >0:
        count = 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 _ in range(N))
ab=list(range(N))
count=0

for i in range(N):
    for j in range(M):
        ab[i]+=a[i][j]*b[j]
    if ab[i]+C>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 _ in range(N))
ab=list(range(N))
count=0

for i in range(N):
    for j in range(M):
        ab[i]+=a[i][j]*b[j]
    if ab[i]+C>0:
        count+=1
print(count)

Submission status: Runtime Error

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

import numpy as np
  
N,M,C=map(int,input().split())
B=np.array([int,input() for _ in range(M)])
ans=0

for i in range(N):
  A=np.array([int,input() for _ in range(M)])
  if sum(A-B)-10 > 0:
    ans+=1

Submission status: Runtime Error

Solution code:
n,m,c=map(int,input().split())
b=list(map(int,input().split()))
B=np.array(b)
count=0
for i in range(n):
    A=np.array(list(map(int,input().split())))
    S=np.dot(B,A) + c
    if(S>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 = [[int(i) for i in input().split()] for i in range(n)]
B = np.array(b).reshape(m,1)
cnt = 0
for i in range(m):
    x = np.dot(A[i], B)+c
    if x >0:
    	cnt += 1
    print(cnt)

Submission status: Runtime Error

Solution code:
import numpy as np
n, m, c = map(int, input().split())
b = list(map(int, input().split()))
A = [[int(i) for i in input().split()] for i in range(n)]
B = np.array(b).reshape(m,1)
cnt = 0
for i in range(m):
    x = np.dot(A[i], B)+c
    if x >0:
    	cnt += 1

print(cnt)

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 _ in range(N)]

B = np.array(B)
A = np.array(A)
vec = A@B + C
ans = np.sum(vec > 0)
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include <algorithm>
#include <bitset>
#include <iomanip>
#include <ios>
#include <iostream>
#include <numeric>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>

using namespace std;

int main(int argc, char const* argv[])
{
    int n, m, c, count = 0;
    cin >> n >> m >> c;
    vector<int> b;
    for (int j = 0; j < m; j++) {
        int x;
        cin >> x;
        b.push_back(x);
    }
    for (int i = 0; i < n; i++) {
        int sum = 0;
        for (int j = 0; j < m; j++) {
            int a;
            cin >> a;
            sum += a * b[j];
        }
        if (sum + c > 0) {
            count++;
        }
    }
    cout << count << "\n";
}

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

for i in range(n):
    for j in range(m):
        
        a = list(map(int, input.split()))
        code += a[i] * b[i]
    
    code -= 10
    if code >= 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 = [list(map(int,list(input()))) for i in range(N)]

import numpy as np
B = np.array(b).T
A = np.array(a)
C = np.ones([N,1])*c
res = np.dot(A,B) + C
print(np.sum(res > 0))

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())
	
def main():
	cnt = 0
	for i in range(N):
		val = C
		for j in range(M):
			val += A[i][j] * B[j]
		if val > 0:
			cnt += 1
	return cnt
print(main)

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

Submission status: Runtime Error

Solution code:
N, M, C = map(int, raw_input().split())
B = map(int , raw_input().split())
ans = 0
for i in range(0, N):
    A = map(int , raw_input().split())
    tmp = [A[m] * B[m] for m in range(M)]

    if sum(tmp) + c > 0:
        ans+=1

print(ans)

Submission status: Runtime Error

Solution code:
#B - Can you solve this?

import numpy as np
N, M, C = map(int, input().split())
B = np.array(list(map(int,input().split())))
#A = np.zeros((N, M))
ans = 0

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

Submission status: Runtime Error

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

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

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

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):
    tmp=0
    A=list(map(int,input().split())
    for j in range(M):
        tmp+=A[j]*B[j]
    tmp+=C
    if tmp>0:
        cnt+=1
    else:
        cnt+=0
print(cnt)

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):
    tmp=0
    A=list(map(int,input().split())
    for j in range(M):
        tmp+=A[j]*B[j]
    tmp+=C
    if tmp>0:
        cnt+=1
    else:
        cnt+=0
print(cnt)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from sys import stdin

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

print(ans)

Submission status: Runtime Error

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

count = 0
for i in range(len(N)):
  A = [int(_) for _ in input().split()] 
  sum = 0
  for j in range(M):
    sum = B[j]*A[j]
  if sum-C > 0:
    count += 1

print(count)

Submission status: Runtime Error

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

count = 0
for i in range(len(N)):
  A = [_ for _ in input().split()] 
  sum = 0
  for j in range(M):
    sum = B[j]*A[j]
  if sum-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()))

count = 0
for i in range (N):
    A = list(map(int,input().split()))
    if np.array(A)*np.array(B) > 0:
        count += 1
print(count)

Submission status: Runtime Error

Solution code:
import numpy as np

N, M, C = map(int, input().split(' '))
B = np.array(tuple(map(int, input().split(' ')))).reshape((-1, 1))
A = np.zeros((N, M))
for i in range(N):
    A[i, :] = np.array(tuple(map(int, input().split(' '))))

print(np.where((np.matmul(A, B) + C) > 0, 1, 0).sum())

Submission status: Runtime Error

Solution code:
n, m, c - [int(i) for i in input().split(' ')]
b = [int(i) for i in input().split(' ')]

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

Submission status: Runtime Error

Solution code:
#入力部
nmc = list(map(int,input().split()))
n = nmc[0]
m = nmc[1]
c = nmc[2]
b = list(map(int,input().split()))
a = [list(map(int,input().split())) for i in range(n)]

#演算部
x = 0
y = 0
sumabc = []
sumres = []
for j in range(n):
    for k in range(m):
        p = a[x][y] * b[y]
        sumabc.append(p)
        y += 1
    sumres.append(sum(sumabc) + c)
    x += 1

z = 0
ansres = []
while sumres != []:
    if sumres[0] > 0:
        ansres.append(sumres[0])
    sumres.pop(0)

#出力部
print(len(ansres))

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.empty((N, M),dtype=int)
for n in range(N):
    A[n, :] = list(map(int, input().split()))
X = np.matmul(A, B) + C
print(len(X[X>0]))

Submission status: Runtime Error

Solution code:
import numpy as np


def solve(string):
    n, m, c, *ba = map(int, string.split())
    """
    b = np.asarray(ba[:m])
    a = np.asarray(ba[m:])
    a.resize((n, m))
    return str(np.sum(np.dot(a, b.T) > -c))
    """
    b = ba[:m]
    ans = 0
    for i in range(n):
        tmp = c
        for j in range(m):
            tmp += b[j] * ba[(i + 1) * n + j]
        if tmp > c:
            ans += 1
    return str(ans)


if __name__ == '__main__':
    n, m, o = map(int, input().split())
    print(solve('{} {} {}\n'.format(n, m, o) + '\n'.join([input() for _ in range(n + 1)])))

Submission status: Runtime Error

Solution code:
a,s,d=map(int,input().split())
list=list(map(int,input().split()))
c=0
for i in range(a):
  l=list(map(int,input().split()))
  sum=d
  for k in range(s):
    sum+=list[k]*l[k]
  if sum>0:
    c+=1
print(c)

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()))
  point = c
  for i in range(m):
    point += a[i]*b[i]
  if point > 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=[list(map(int, input().split())) for n in range(N)]

def Sof(a):
  d=C
  for m in range(M):
    d+=a[m]*b[m]
  return d > 0

co=0
for i in range(N):
  if(Sof(A[i])):
    co+=1

print(co)

Submission status: Runtime Error

Solution code:
import numpy as np

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

b=list(map(int, input().split()))
b=np.array(b)
count=0
for _ in range(M):
    a=list(map(int, input().split()))
    a=np.array(a)
    e=a*b
    d=np.sum(e,axis=0)+C
    if d>0:
        count+=1
print(count)

Submission status: Runtime Error

Solution code:
import numpy as np

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

b=np.array([int, input().split()])
count=0
for _ in range(M):
    a=np.array([map(int, input().split())])
    e=a*b
    d=np.sum(e,axis=0)+C
    if d>0:
        count+=1
print(count)

Submission status: Runtime Error

Solution code:
import numpy as np
N, M, C = list(map(int, input().split()))
B = np.asarray(input().split(), dtype=np.int)
A = []
for i in range(N):
  A.append(list(map(int, input().split())))
A = np.asarray(A, dtype=np.int)

np.sum(A @ B.T > (-1*C))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N,M,C = map(int, input().split())
B = list(map(int, input().split()))
A = []
counter = 0
for i in range(N):
    A.append(list(map(int, input().split())))
    val = 0
    for j in range(M):
        val += A[i][j] * B[j]
    else:
        if val + C > 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 = []
correct_num = 0
for i in range(N):
    a.append(map(int, input().split()))
    sum = 0
    for j in range(M):
        sum + =a[i][j] * B[j]
    if sum > 0:
        correct_num += 1
    else:
        pass
print(sum)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N,M,C=map(int, input().split())
# N:Aのソースコード(配列)数
# M:AとBの配列の中身の数
# C:計算で利用

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

print(x)

Submission status: Runtime Error

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

cnt = 0
for an in a:
    dot = 0
    for i, j in zip(an, b):
        dot += i*j
    dot += c
    cnt += (dot>0).astype(int)
    
print(cnt)

Submission status: Runtime Error

Solution code:
import numpy as np

n, m, c = [int(x) for x in input().split(' ')]
b = np.asarray([int(x) for x in input().split(' ')])

a = np.ndarray((n, 3), dtype=np.int32)
for i in range(n):
    a[i] = [int(x) for x in input().split(' ')]


s = np.sum(a * b, axis=1)
print(np.sum(s + c > 0))

Submission status: Runtime Error

Solution code:
from sys import stdin


def na():
    return map(int, stdin().split())


n, _, c = na()
bs = na()

cnt = 0
for _ in range(n):
    if sum(x * y for x, y in zip(na(), bs)) > -c:
        cnt += 1

print(cnt)

Submission status: Runtime Error

Solution code:
import numpy as np
N,M,C = map(int,input().split())
B = [int(k) for k in input().split()]
A = [[int(j) for j in input().split()] for i in range(1,N+1)] 
b = np.array(B)
cnt = 0
for i in range(1,N+1):
    if (np.dot(np.array(A[i]),b) + C >0):
        cnt += 1
    else:
        cnt = cnt
        
print(cnt)

Submission status: Runtime Error

Solution code:
import numpy as np
N,M,C = map(int,input().split())
B = [int(k) for k in input().split()]
A = [[int(j) for j in input().split()] for i in range(1,N+1)] 
b = np.array(B)
a = np.array(A)
cnt = 0
for i in range(1,N+1):
    if (np.dot(a[i],b) + C >0):
        cnt += 1
    else:
        cnt = cnt
        
print(cnt)

Submission status: Runtime Error

Solution code:
import numpy as np
N,M,C = map(int,input().split())
B = [int(k) for k in input().split()]
A = [[int(j) for j in input().split()] for i in range(1,N)] 
b = np.array(B)
a = np.array(A)
cnt = 0
for i in range(1,N):
    if (np.dot(a[i],b) + C >0):
        cnt += 1
    else:
        cnt = cnt
        
print(cnt)

Submission status: Runtime Error

Solution code:
import numpy as np
N,M,C = map(int,input().split())
B = [int,input().split()]
for i in range(1,N):
    Ai = [int(j) for j in input().split()]
    ai = np.array(Ai)   
b = np.array(B)
bt = b.reshape([M,1])
cnt = 0
for i in range(1,N)
    if (np.dot(ai,bt) + C >0)
         cnt += 1
print(cnt)

Submission status: Runtime Error

Solution code:
import numpy as np
N,M,C = map(int,input().split())
B = [int,input().split()]
for i in range(1,N)
    Ai = [int(j) for j in input().split()]
    ai = np.array(Ai)   
b = np.array(B)
bt = b.reshape([N,1])
cnt = 0
for i in range(1,N)
    if (np.dot(ai,bt) + C >0)
         cnt += 1
print(cnt)

Submission status: Runtime Error

Solution code:
import numpy as np
N,M,C = map(int,input().split())
B = [int,input().split()]
for i in range(1,N)
    Ai = [int,input().split()]
    ai = np.array(Ai)   
b = np.array(B)
bt = b.reshape([N,1])
cnt = 0
for i in range(1,N)
    if (np.dot(ai,bt) + C >0)
         cnt += 1
print(cnt)

Submission status: Runtime Error

Solution code:
import numpy as np
N,M,C = map(int,input().split())
B = list(int,input().split())
for i in range(1,N)
    Ai = list(int,input().split())
    ai = np.array(Ai)
b = np.array(B)
bt = b.reshape([N,1])
cnt = 0
for i in range(1,N)
    if (np.dot(ai,bt) + C >0)
         cnt += 1
print(cnt)

Submission status: Runtime Error

Solution code:
import numpy as np
N,M,C = map(int,input().split())
B = list(int,input().split())
for i in range(1,N)
    Ai = list(int,input().split())
    

ai = np.array(Ai)
b = np.array(B)

ait = ai.reshape([N,1])
cnt = 0
for i in range(1,N)
    if (np.dot(ait,b) + C >0)
         cnt += 1
print(cnt)

Submission status: Runtime Error

Solution code:
import numpy as np


N, M, C = map(int, input().split())
B = np.fromiter(map(int, input().split()), dtype=int)
As = list()
for i in range(N):
    a = np.fromiter(map(int, input().split()), dtype=int)
    As.append(a)
As = np.vstack(As)
print(int(np.sum(As @ B + C > 0)))

Submission status: Runtime Error

Solution code:
import numpy as np


N, M, C = map(int, input().split())
B = np.fromiter(map(int, input().split()), dtype=int)
As = list()
for i in range(N):
    a = np.fromiter(map(int, input().split()), dtype=int)
    As.append(a)
As = np.vstack(As)
print(np.sum(As @ B + C > 0))

Submission status: Runtime Error

Solution code:
from itertools import izip

N, M, C = (int(x) for x in raw_input().split())
B = [int(x) for x in raw_input().split()]
A = [[int(x) for x in raw_input().split()] for i in xrange(N)]
result = 0
for i in xrange(N):
  cur_sum = C
  for a, b in izip(A, B):
    cur_sum += a * b
  if cur_sum > 0:
    result += 1
print(result)

Submission status: Runtime Error

Solution code:
from collections import izip

N, M, C = (int(x) for x in raw_input().split())
B = [int(x) for x in raw_input().split()]
A = [[int(x) for x in raw_input().split()] for i in xrange(N)]
result = 0
for i in xrange(N):
  cur_sum = C
  for a, b in izip(A, B):
    cur_sum += a * b
  if cur_sum > 0:
    result += 1
print(result)

Submission status: Runtime Error

Solution code:
N, M, C = (int(x) for x in raw_input().split())
B = [int(x) for x in raw_input().split()]
A = [[int(x) for x in raw_input().split()] for i in xrange(N)]
result = 0
for i in xrange(N):
  cur_sum = C
  for a, b in izip(A, B):
    cur_sum += a * b
  if cur_sum > 0:
    result += 1
print(result)

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

Submission status: Runtime Error

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

def is_correct(As):
  return np.inner(As, Bs) + C > 0

As = list(map(int, input().split()))
n = 0
while As:
  if is_correct(As):
    n += 1
  try:
	As = list(map(int, input().split()))
  except:
    break
  
print(n)

Submission status: Runtime Error

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

B.append(map(int, input().split())
for i in range(N):
	A.append(list(map(int, input().split())))


sum = 0
count = 0

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

print(sum)

Submission status: Runtime Error

Solution code:
tmp = input()
N = int(input().split(' ')[0])
M = int(input().split(' ')[1])
C = int(input().split(' ')[2])
B = [int(b) for b in input().split(' ')]
cnt = 0
for i in range(N):
  A = [int(a) for a in input().split(' ')]
  sum = 0
  for j in range(M):
    sum += B[j]*A[j]
  sum += C
  if C > 0:
    cnt += 1
print(cnt)

Submission status: Runtime Error

Solution code:
tmp = input()
N = int(input().split()[0])
M = int(input().split()[1])
C = int(input().split()[2])
B = [int(b) for b in input().split()]
cnt = 0
for i in range(N):
  A = [int(a) for a in input().split()]
  sum = 0
  for j in range(M):
    sum += B[j]*A[j]
  sum += C
  if C > 0:
    cnt += 1
print(cnt)

Submission status: Runtime Error

Solution code:
tmp = input()
N = int(input().split()[0])
M = int(input().split()[1])
C = int(input().split()[2])
tmp = input()
B = [int(b) for b in tmp.split()]
cnt = 0
for i in range(N):
  tmp = input()
  A = [int(a) for a in tmp.split()]
  sum = 0
  for j in range(M):
    sum += B[j]*A[j]
  sum += C
  if C > 0:
    cnt += 1
print(cnt)

Submission status: Runtime Error

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

B.append(map(int, input().split())
for i in range(N):
	A.append(list(map(int, input().split())))


sum = 0
count = 0

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

print(count)

Submission status: Runtime Error

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

B.append(map(int, input().split())
for i in range(N):
	A.append(list(map(int, input().split())))


sum = 0
count + 0

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

print(sum)

Submission status: Runtime Error

Solution code:
import numpy
N, M, C = map(int, input().split())
b = numpy.array([i for i in map(int, input().split())])                                                        
A = numpy.array([[0]*M]*N)
for i in range(N):
    A[i] = [i for i in map(int, input().split())]

print(sum((numpy.matmul(A, b) + C) > 0))

Submission status: Runtime Error

Solution code:
N, M, C = map(int, input().split())
Blis = [int(x) for x in input().split()]
Alis = []*N
k = 0
for i in range(N):
  Alis[i] = [int(x) for x in input().split()]
for i in range(N):
  total = 0
  for j in range(M):
    total = total + (Alis[i][j])*(Blis[j])
  total = total + C
  if total > 0:
    k = k + 1
print(k)

Submission status: Runtime Error

Solution code:
N, M, C = map(int, input().split())
Blis = [int(x) for x in input().split()]
Alis = []*N
k = 0
for i in range(N):
  Alis[i] = [int(x) for x in input().split()]
for i in range(N):
  total = 0
  for j in range(M):
    total = total + (Alis[i][j])*(Blis[i][j])
  total = total + C
  if total > 0:
    k = k + 1
print(k)