Cod sursa(job #2467032)
Utilizator | Data | 3 octombrie 2019 16:34:28 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.25 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream f("adunare.in");
ofstream g("adunare.out");
int main()
{
int c,a,b;
f>>a>>b;
c=a;
while(c/10!=0)
c/=10;
int v[c];
v[1]=a+b;
g<<v[1];
return 0;
}