A+B
#include <stdio.h> int calc(int a, int b) { return(!b ? a : calc(a ^ b, ((a & b) << 1))); } int main() { int a, b; scanf("%d%d", &a, &b); printf("%d", calc(a, b)); }
#include <stdio.h> int calc(int a, int b) { return(!b ? a : calc(a ^ b, ((a & b) << 1))); } int main() { int a, b; scanf("%d%d", &a, &b); printf("%d", calc(a, b)); }