Cod sursa(job #3162849)
Utilizator | Data | 30 octombrie 2023 01:33:59 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | py | Status | done |
Runda | Arhiva de probleme | Marime | 0.19 kb |
suma = 0
with open("adunare.in","r") as file:
for line in file:
suma += int(line)
file.close()
with open("adunare.out","w") as file:
file.write(str(suma))
file.close()