Electrical Outlets
This commit is contained in:
6
electricaloutlets.py
Normal file
6
electricaloutlets.py
Normal 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)
|
||||
Reference in New Issue
Block a user