A+B
viplzm 2016-11-25 17:15:34
#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 2016-11-25 17:15:34