diff --git a/electricaloutlets.py b/electricaloutlets.py new file mode 100644 index 0000000..f8afe37 --- /dev/null +++ b/electricaloutlets.py @@ -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)