Cod sursa(job #1168831)
Utilizator | Data | 9 aprilie 2014 18:27:23 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.31 kb |
#include <iostream>
#include <fstream>
using namespace std;
fstream in("adunare.in");
ofstream out("adunare.out");
int main(){
long long int a,b;
long long int sum;
in >>a>>b;
int big=0;
if (2000000000>=a+b) big=1;
sum=big*(a+b); if (sum==0) sum=2000000000;
out<<sum;
}