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: Wrong Answer

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):
    sum = 0

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

        if sum + c > 0:
            ans += 1


print(ans)

Submission status: Wrong Answer

Solution code:
# ABC121
# B Can you solve this?
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
ANS = []
ct = 0
for i in range(N):
    for j in range(M):
        ans += A[i][j] * B[j]
        if j == M-1:
            ANS.append(ans)
            ans = 0
print(ANS)
for x in ANS:
    if x + C > 0:
        ct += 1
print(ct)

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

ans = 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:
        ans+=1
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
"""Boot-camp-for-Beginners_Easy005_B_Can-you-solve-this_25-August-2020.py"""

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

cond = c
ans = 0
for i in a_lists:
    for j in range(m):
        cond = c
        cond += i[j]*b_lists[j]
    if cond > 0:
        ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:
import numpy as np

N,M,C = map(int,input().split())
b = np.array([int(i) for i in input().split()])
a = np.zeros(M)
for _ in range(N):
    a = np.vstack([a,[int(i) for i in input().split()]])
cnt=0
for i in range(1,N+1):
    if sum(b-a[i])+C>0:
        cnt +=1

print(cnt)

Submission status: Wrong Answer

Solution code:
import numpy as np

N,M,C = map(int,input().split())
b = np.array([int(i) for i in input().split()])
a = np.zeros(M)
for _ in range(N):
    a = np.vstack([a,[int(i) for i in input().split()]])

cnt=0
for i in range(1,N+1):
    if sum(b-a[i])>0:
        cnt +=1

print(cnt)

Submission status: Wrong Answer

Solution code:
#! python3
#  solve_121B.py

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

ans = 0

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

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

Submission status: Wrong Answer

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

bl = list(map(int,input().split()))
al = [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+=bl[j]*al[i][j]
        total+=c
        if 0 < total:
            cnt+=1
print(cnt)

Submission status: Wrong Answer

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):
  if sum(a[i]) + c > 0:
    ans += 1
print(ans)

Submission status: Wrong Answer

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

for i in range(n):
  a = map(int, input().split())
  A = list(a)
  for j in range(m):
    x = A[j] * b[j]
    y.append(int(x))
  if sum(y) -10 <=0:
    ans += 0
  else:
    ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
n, m, c = [int(i) for i in input().split()]
bs = [int(i) for i in input().split()]
ans = 0
for i in range(n):
    a_list = [int(i) for i in input().split()]
    cond = sum(a+b for a, b in zip(a_list, bs)) + c
    if cond > 0:
        ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
n, m, c = [int(i) for i in input().split()]
bs = [int(i) for i in input().split()]
ans = 0
for i in range(n):
    a_list = [int(i) for i in input().split()]
    cond = sum(a+b for a, b in zip(a_list, bs)) + c
    if cond > 0:
        ans += 1

Submission status: Wrong Answer

Solution code:
N, M, C = input().split(' ')
N = int(N)
M = int(M)
C = int(C)
B = []
B = input().split(' ')
B = [int(i) for i in B]
A = []
R = 0
for i in range(N):
  A = input().split(' ')
  A = [int(i) for i in A]
  combine = [x * y for (x, y) in zip(A, B)]
  print(sum(combine) + C)
  if sum(combine) + C > 0:
    R += 1
print(R)

Submission status: Wrong Answer

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: Wrong Answer

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


if __name__ == '__main__':
    solve()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(count)

Submission status: Wrong Answer

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

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x, y, z = map(int, input().split())
lst = [i for i in map(int, input().split())]
cnt = 0
for _ in range(x):
    lst_a = [i for i in map(int, input().split())]
    total = z
    for i in range(y):
        total += lst[i] * lst_a[i]
        if total > 0:
            cnt += 1
print(cnt)

Submission status: Wrong Answer

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

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

count = 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:
        count += 1

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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 A:
  t = C
  for a,b in zip(i, B):
      t += a * b
      if t > 0:
        count += 1
print(count)

Submission status: Wrong Answer

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 i in A:
    numberSum = c
    for a, b in zip(i, B):
      numberSum += (a * b)  
      if numberSum > 0:
        count += 1
print(count)

Submission status: Wrong Answer

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 i in A:
  numberSum = c
  for a, b in zip(i, B):
    numberSum += (a * b)  
    if numberSum > 0:
      count += 1
print(count)

Submission status: Wrong Answer

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

sum = c
for i in range(n):
    for j in range(m):
        sum += A[i][j]*B[j]
    if sum > 0:
        ans += 1
        sum = c
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
import math
def i():return int(sys.stdin.readline().replace("\n",""))
def i2():return map(int,sys.stdin.readline().replace("\n","").split())
def s():return str(sys.stdin.readline().replace("\n",""))
def l():return list(sys.stdin.readline().replace("\n",""))
def intl():return [int(k) for k in sys.stdin.readline().replace("\n","").split()]
def lx():return list(map(lambda x:int(x)*-1,sys.stdin.readline().replace("\n","").split()))
def t():return tuple(map(int,sys.stdin.readline().replace("\n","").split()))

if __name__ == "__main__":pass
n,m,c = i2()
b = intl()
cnt = 0
s = 0
for i in range(n):
    a = intl()
    for i in range(m):
        s += a[i]*b[i]
        print(s)
    if s+c > 0:
        cnt += 1
    s = 0
print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np
N, M, C = map(int, input().split())
B = list(map(int, input().split()))
A = [ ]
for i in range(N):
  AA = list(map(int, input().split()))
  A.append(AA)
Bnp = np.array(B)
Anp = np.array(A)
C = np.dot(Anp, Bnp) + 10
D = 0
for i in range(N):
  if C[i] > 0:
    D += 1
print(D)

Submission status: Wrong Answer

Solution code:
import numpy as np
N, M, C = map(int, input().split())
B = list(map(int, input().split()))
A = [ ]
for i in range(N):
  AA = list(map(int, input().split()))
  A.append(AA)
Bnp = np.array(B)
Anp = np.array(A)
C = np.dot(Anp, Bnp) - C
D = 0
for i in range(N):
  if C[i] > 0:
    D += 1
print(D)

Submission status: Wrong Answer

Solution code:
import numpy as np
N, M, C = map(int, input().split())
B = list(map(int, input().split()))
A = [ ]
for i in range(N):
  AA = list(map(int, input().split()))
  A.append(AA)
Bnp = np.array(B)
Anp = np.array(A)
C = np.dot(Anp, Bnp) - 10
D = 0
for i in range(N):
  if C[i] > 0:
    D += 1
print(D)

Submission status: Wrong Answer

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

ans = 0


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

Submission status: Wrong Answer

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()))
  if sum([a*b for a in A for b in B])+C>0:
    ans+=1
print(ans)

Submission status: Wrong Answer

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
l = []

for i in range(n):
  for j in range(m):
    l.append(a[i][j] * b[j]) 
    if sum(l) + c > 0:
      ans += 1
      l.clear()
    else:
      l.clear()

print(ans)

Submission status: Wrong Answer

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
l = []

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

print(ans)

Submission status: Wrong Answer

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

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


for i in range(n):

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

b = [int(i) for i in input().split()]

ans = 0 
cnt = 0

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N,M,C=input().split()
*B,=input().split()
print(sum(sum(int(a)*int(b) for a,b in zip(i.split(),B))+int(C)>0 for i in open(0)))

Submission status: Wrong Answer

Solution code:
N,M,C=input().split();*B,=input().split();print(sum(sum(int(a)*int(b) for a,b in zip(i.split(),B))+int(C)>0 for i in open(0)))

Submission status: Wrong Answer

Solution code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque
from decimal import *


def lcm(x, y):
    return (x * y) // math.gcd(x, y)


if __name__ == '__main__':
    n,m,c = map(int, input().split())
    b = [int(i) for i in input().split()]

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

Submission status: Wrong Answer

Solution code:
a=tuple(map(int,input().split()))
b=[]
for i in range(a[0]+1):
    b.append(list(map(int,input().split())))
ans=0
s=0
for j in range(a[0])[1:a[0]+1]:
    for k in range(a[1]):
        s+=b[j][k]*b[0][k]
    s+=a[2]
    if s>0:
        ans+=1
    s=0
print(ans)

Submission status: Wrong Answer

Solution code:
a=tuple(map(int,input().split()))
b=[]
for i in range(a[0]+1):
    b.append(list(map(int,input().split())))
ans=0
s=0
for j in range(a[0])[1:a[0]]:
    for k in range(a[1]):
        s+=b[j][k]*b[0][k]
    s+=a[2]
    if s>0:
        ans+=1
    s=0
print(ans)

Submission status: Wrong Answer

Solution code:
a=tuple(map(int,input().split()))
b=[]
for i in range(a[0]+1):
    b.append(list(map(int,input().split())))
ans=0
s=0
for j in range(a[0]):
    for k in range(a[1]):
        s+=b[j][k]*b[0][k]
    s+=a[2]
    if s>0:
        ans+=1
    s=0
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#import sys
#import math
#import numpy as np
'''a,b= map(int,input().split())'''
#a, b, c = [list(map(int, input().split())) for _ in range(3)]
#li0= [int(x) for x in input().split()]
#n,l= map(int, input().split())
#x = [list(map(int, input().split())) for _ in range(n)] 
a,b,c=map(int,input().split())
li=[list(map(int,input().split())) for _ in range(a)]
ans=ju=0

for i in range(1,a):
  ans=0
  for j in range(b):
    ans+=li[0][j]*li[i][j]
  ans+=c

  if ans>0:
    ju+=1
print(ju)

Submission status: Wrong Answer

Solution code:
import numpy as np
n,m,c=map(int,input().split())
b=np.array(list(map(int,input().split())))
ac=0
for _ in range(n):
    a=np.array(list(map(int,input().split())))
    print(a*b)
    if sum(a*b)+c >0:
        ac+=1
print(ac)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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)*y for x,y in zip(input().split(),b)]
    s=0
    for j in range(m):
        s=sum(a)
        if(s+c>0):
            ans=+1
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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 
t = c
for row in A:
    for a,b in zip(row,B):
        t += a*b
    if t > 0 :
        ans += 1
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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)) > 0)
print(cnt)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

print(cnt)

Submission status: Wrong Answer

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

print(cnt)

Submission status: Wrong Answer

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)]
lst = []
tmp = 0

for i in range(n):
    
    x = -c
    for j in range(m):
        x += a[i][j]*b[j]
    lst.append(x)

for i in range(n):
    if lst[i] > 0:
        tmp += 1

print(tmp)

Submission status: Wrong Answer

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)]
x = -c
lst = []
tmp = 0

for i in range(n):

    for j in range(m):
        x += a[i][j]*b[j]
    lst.append(x)

for i in range(n):
    if lst[i] > 0:
        tmp += 1

print(tmp)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n, m, c = map(int, input().split())
bm = list(map(int, input().split()))
anm = []
for _ in range(n):
    anm.append(list(map(int, input().split())))
    
count = 0
for i in range(n):
    sumAB = 0
    for j in range(m):
        sumAB += anm[i][j] * bm[j]

    if sumAB -10 > 0:
        count += 1

print(count)

Submission status: Wrong Answer

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

print(cnt)

Submission status: Wrong Answer

Solution code:
#テストファイルで実行する時
import sys
if sys.platform =='ios':
    sys.stdin=open('input_file.txt')


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

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

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


print(n,m,c)
print(a)
print(b)

test = 0
ans = 0

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

print(ans)

Submission status: Wrong Answer

Solution code:
# ABC 121: B – Can you solve this?
n, m, c = [int(s) for s in input().split()]
b = [int(s) for s in input().split()]

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

counter = 0

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

    if answer > 0:
        print(i, answer)
        counter += 1

print(counter)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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)