Parcourir la source

Upload files to ''

webturing il y a 4 ans
Parent
commit
9a7d945334
4 fichiers modifiés avec 15 ajouts et 0 suppressions
  1. 5 0
      E.py
  2. 4 0
      F.py
  3. 3 0
      G.py
  4. 3 0
      H.py

+ 5 - 0
E.py

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

+ 4 - 0
F.py

@@ -0,0 +1,4 @@
+n = int(input())
+for i in range(n):
+    A = list(map(int, input().strip().split()))
+    print(sum(A[1:]))

+ 3 - 0
G.py

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

+ 3 - 0
H.py

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