题目链接:点击打开链接 Imp is in a magic forest, where xorangles grow (wut?) A xorangle of order n is such a non-degenerate triangle, that lengths of its sides are integers not exceeding n, and the xor-sum of the lengths is equal to zero. Imp has to count the n
> **不用临时变量怎么实现两个数据的交换?** 方式一:加减法的运算方式求解new_b = a - b + b = a;new_a = a + b - a = b;一个简单的运算方式,最重要的思路就是加减法运算的结合性,第一行代码很关键,a = a - b```//方式一:加减法运算- (void)func2SwapA:(int)a B:(int)b{ a = a - b; b = a + b; a = b - a; NSLog(@"%d,%d",a,b);}``` 方式二:异