while True: try: a, b = map(int, raw_input().strip().split()) print a + b, except EOFError: break tcase = int(raw_input().strip()) for case in range(tcase): a, b = map(int, raw_input().strip().split()) print a + b, while True: a, b = map(int, raw_input().strip().split()) if a == 0 and b == 0: break print a + b, tcase = int(raw_input().strip()) for case in range(tcase): a, b = map(int, raw_input().strip().split()) if a == 0 and b == 0: break print a + b, tcase = int(raw_input().strip()) for case in range(tcase): data = map(int, raw_input().strip().split()) n, array = data[0], data[1:] sum = 0 for i in range(n): sum += array[i] print sum, while True: try: data = map(int, raw_input().strip().split()) n, array = data[0], data[1:] sum = 0 for i in range(n): sum += array[i] print sum, except EOFError: raise while True: try: a, b = map(int, raw_input().strip().split()) print a + b except EOFError: break while True: data = raw_input().strip() if data.isspace(): break else: data = map(int, data) n, array = data[0], data[1:] sum = 0 for i in range(n): sum += array[i] print sum,
|