Electrical Outlets

This commit is contained in:
2023-06-24 22:18:34 +02:00
parent cb9edc207f
commit 85e678bd91

6
electricaloutlets.py Normal file
View File

@@ -0,0 +1,6 @@
n = int(input())
for _ in range(n):
k = list(map(int, input().split()))
k = k[1:]
t = sum(k) - len(k) + 1
print(t)