Vefþjónatjón

This commit is contained in:
2023-10-16 22:09:07 +02:00
parent 03302ded7c
commit 97bbb9503b

10
vefthjonatjon.py Normal file
View File

@@ -0,0 +1,10 @@
CPU = 0
MEM = 0
HDD = 0
n = int(input())
for _ in range(n):
c, m, h = map(lambda s: 1 if s == "J" else 0, input().strip().split())
CPU += c
MEM += m
HDD += h
print(min((CPU, MEM, HDD)))