Below is a minimal Python program that solves A+B with big integers, one integer per line. Note that certain input/output methods may be faster than others and may be preferred in contests:
import sys
inputs = sys.stdin.read().splitlines()
A, B = map(int, inputs)
sys.stdout.write(str(A + B) + '\n')
Below is a minimal Java program that solves A+B with big integers, one integer per line. Note that certain input/output methods may be faster than others and may be preferred in contests:
Lawson Computer Science Building
305 N. University Street
West Lafayette, IN 47907-2107
United States of America
Institutional: luo401 [at] purdue [dot] edu
Personal: zhtluo [at] gmail [dot] com