Cod sursa(job #2355514)
Utilizator | Data | 26 februarie 2019 09:31:25 | |
---|---|---|---|
Problema | A+B | Scor | 30 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.3 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ifstream fin("adunare.in");
ofstream fout("adunare.out");
short int x, y, z = 1;
fin>>x>>y;
for (int i = 1; i <= 100000 * z; ++i)
if(x + y == i) z = x + y;
fout<<z;
return 0;
}