Cod sursa(job #1666309)
Utilizator | Data | 27 martie 2016 21:22:20 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.23 kb |
#include<iostream>
#include<fstream>
using namespace std;
ifstream f("adunare.in");
ofstream g("adunare.out");
int a,b,suma;
int main(){
f>>a>>b;
if(a+b<2000000)
suma = a+b;
g<<suma;
f.close();
g.close();
}