Cod sursa(job #2595189)
Utilizator | Data | 7 aprilie 2020 12:04:48 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream f("adunare.in");
ofstream g("adunare.out");
long long a, b, c;
int main()
{
f>>a>>b;
while(b)
{
c = a & b;
a = a ^ b;
b = c << 1;
}
g<<a;
return 0;
}