A+B

viplzm Reply 38 weeks 2 days ago
#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)); }
CCNU2015210818 Reply 26 weeks 5 days ago