Cod sursa(job #1919214)
Utilizator | Data | 9 martie 2017 18:21:05 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.26 kb |
#include <fstream>
using namespace std;
ifstream q("adunare.in");
ofstream w("adunare.out");
int main()
{int a,b, total;
q>>a>>b;
total=0;
for(int i=1;i<=a;i++) total++;
for(int i=1;i<=b;i++) total++;
w<<total;
return 0;
}