Skip to content

Instantly share code, notes, and snippets.

@KAnanev
Created December 3, 2023 13:53
Show Gist options
  • Save KAnanev/db094f7e837c2bb3d0d6a07a89d535f1 to your computer and use it in GitHub Desktop.
Save KAnanev/db094f7e837c2bb3d0d6a07a89d535f1 to your computer and use it in GitHub Desktop.
import sys
def main():
num_lines = int(input())
output_numbers = []
for i in range(num_lines):
line = sys.stdin.readline().rstrip()
value_1, value_2 = line.split()
value_1 = int(value_1)
value_2 = int(value_2)
result = value_1 + value_2
output_numbers.append(str(result))
print('\n'.join(output_numbers))
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment