Cod sursa(job #977611)
Utilizator | Data | 26 iulie 2013 11:09:55 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.2 kb |
#include<fstream>
using namespace std;
ifstream f("adunare.in");
ofstream g("adunare.out");
int main(){
int a, b, S;
f>>a>>b;
if ((a+b) <= 2000000)
S = a + b;
g<<S;
}