Cod sursa(job #3184828)
Utilizator | Data | 17 decembrie 2023 00:59:17 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | py | Status | done |
Runda | Arhiva de probleme | Marime | 0.37 kb |
# Open the input file containing two numbers, each on its own line.
with open("adunare.in", "r") as fin:
# Store the first two values.
a = int(f.readline())
b = int(f.readline())
# Open the output file for writing.
with open("adunare.out", "w") as fout:
# Write to the output file the string representation of the sum of the two values.
fout.write(str(a+b))