Cod sursa(job #312652)
| Utilizator | Data | 6 mai 2009 19:35:09 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | super_easy | Marime | 0.21 kb |
#include<iostream.h>
#include<fstream.h>
fstream f("adunare.in",ios::in);
fstream g("adunare.out",ios::out);
void main ()
{
int a,b,cmmdc;
f>>a;
f>>b;
if (a>b) cmmdc=a-b;
else cmmdc=b-a;
g<<cmmdc;
}
