Cod sursa(job #1461401)
Utilizator | Data | 15 iulie 2015 17:02:55 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.22 kb |
#include <fstream>
using std::ifstream;
using std::ofstream;
ifstream in("adunare.in");
ofstream out("adunare.out");
int main() {
long x=0,s=0;
while (in >> x) {
s += x;
}
out << s;
}