Cod sursa(job #834179)
Utilizator | Data | 13 decembrie 2012 21:48:38 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include<iostream>
#include<fstream>
using namespace std;
int s;
int main()
{
int n;
ifstream f("adunare.in");
ofstream g("adunare.out");
while(f>>n)
s=s+n;
g<<s;
}