webturing 4 rokov pred
rodič
commit
1363ffb54a
4 zmenil súbory, kde vykonal 14 pridanie a 0 odobranie
  1. 2 0
      A.py
  2. 3 0
      B.py
  3. 4 0
      C.py
  4. 5 0
      D.py

+ 2 - 0
A.py

@@ -0,0 +1,2 @@
+a, b = map(int, input().strip().split())
+print(a+b)

+ 3 - 0
B.py

@@ -0,0 +1,3 @@
+while True:
+    a, b = map(int, input().strip().split())
+    print(a+b)

+ 4 - 0
C.py

@@ -0,0 +1,4 @@
+n = int(input().strip())
+for i in range(n):
+    a, b = map(int, input().strip().split())
+    print(a + b)

+ 5 - 0
D.py

@@ -0,0 +1,5 @@
+while True:
+    A = list(map(int, input().strip().split()))
+    if A[0] == 0:
+        break
+    print(sum(A[1:]))