Cod sursa(job #2018922)
| Utilizator | Data | 6 septembrie 2017 13:11:57 | |
|---|---|---|---|
| Problema | A+B | Scor | 100 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.3 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream in("adunare.in");
ofstream out("adunare.out");
int main(void) {
int a, b, c = 0;
in >> a >> b;
for (int i = 1; i <= a; ++i)
++c;
for (int j = 1; j <= b; ++j)
++c;
out << c << endl;
return 0;
}
