Cod sursa(job #312608)
Utilizator | Data | 6 mai 2009 17:00:34 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.26 kb |
#include<fstream.h>
int main()
{
int a,b,i,j,k,c,n;
a=1;
b=2;
n=500;
for (i=1;i<=n;i++)
for (j=1;j<=n;j++)
for (k=1;k<=n;k++)
if (a<b) c++;
ifstream f("adunare.in");
f>>a>>b;
f.close();
ofstream g("adunare.out");
g<<a+b;
g.close();
return 0;
}