Submission #54084873


Source Code Expand

from collections import defaultdict, Counter
N, M = list(map(int, input().split()))
A = list(map(int, input().split()))

counter = Counter()
for i in range(N):
    X = list(map(int, input().split()))
    for j in range(M):
        counter[j] += X[j]

if all(counter[i]>= A[i] for i in range(M)):
    print("Yes")
else:
    print("No")

Submission Info

Submission Time
Task B - Nutrients
User mu16
Language Python (PyPy 3.10-v7.3.12)
Score 150
Code Size 349 Byte
Status AC
Exec Time 74 ms
Memory 82180 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 150 / 150
Status
AC × 2
AC × 25
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All hand.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, random_17.txt, random_18.txt, random_19.txt, random_20.txt, random_21.txt, random_22.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
hand.txt AC 68 ms 77036 KiB
random_01.txt AC 74 ms 81628 KiB
random_02.txt AC 72 ms 81804 KiB
random_03.txt AC 73 ms 81824 KiB
random_04.txt AC 72 ms 81516 KiB
random_05.txt AC 73 ms 81624 KiB
random_06.txt AC 72 ms 81908 KiB
random_07.txt AC 73 ms 81748 KiB
random_08.txt AC 72 ms 81632 KiB
random_09.txt AC 73 ms 82080 KiB
random_10.txt AC 72 ms 81856 KiB
random_11.txt AC 73 ms 82084 KiB
random_12.txt AC 69 ms 76920 KiB
random_13.txt AC 68 ms 77080 KiB
random_14.txt AC 70 ms 76536 KiB
random_15.txt AC 74 ms 81632 KiB
random_16.txt AC 72 ms 81644 KiB
random_17.txt AC 73 ms 81656 KiB
random_18.txt AC 68 ms 76656 KiB
random_19.txt AC 73 ms 81540 KiB
random_20.txt AC 73 ms 82072 KiB
random_21.txt AC 72 ms 82180 KiB
random_22.txt AC 68 ms 77076 KiB
sample_01.txt AC 68 ms 77132 KiB
sample_02.txt AC 68 ms 76824 KiB