Cod sursa(job #1008509)

Utilizator ChrystianSanduSandu Cristian ChrystianSandu Data 11 octombrie 2013 09:36:16
Problema A+B Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.3 kb


#include <fstream>
#include <iostream>

using namespace std;

int main()
{
    int x,y,s;

    ifstream f("adunare.in");
    ofstream g("adunare.out");

    f>>x;
    f>>y;

    s=x+y;

    if(s>200000000)
    cout << "Suma imposibila!";

    g<<s;


  f.close();
  g.close();
}