Cod sursa(job #555107)
Utilizator | Data | 15 martie 2011 11:52:10 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.23 kb |
#include <fstream>
#include <ctime>
using namespace std;
int main()
{
ifstream i("adunare.in");
ofstream o("adunare.out");
int a, b; i >> a >> b;
srand(time(0));
o << ((a + b) * (rand() + rand() + rand() + rand() + rand()) % 2);
}