Cod sursa(job #1194403)
Utilizator | Data | 3 iunie 2014 19:41:41 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.23 kb |
#include <fstream>
using namespace std;
int main()
{
ifstream f("adunare.in");
ofstream g("adunare.out");
int a, b,x,y;
f >> a >> b;
x = a-b;
y = x+b+b-a;
g<<y+x+a+x-2*x<<"\n";
return 0;
}