Cod sursa(job #1986959)
| Utilizator | Data | 29 mai 2017 14:22:14 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | teme_upb | Marime | 0.42 kb |
#include <bits/stdc++.h>
using namespace std;
typedef int int128 __attribute__((mode(TI)));
ifstream fin("adunare.in");
ofstream fout("adunare.out");
void Print128(int128 x) {
int n = 0;
char digs[40];
do {
digs[n++] = x % 10 + '0';
x /= 10;
} while (x > 0);
while (n--) {
fout.put(digs[n]);
}
fout.put('\n');
}
int main() {
int a, b; fin >> a >> b;
int128 x = a + b;
Print128(x);
}