← 返回 oracle 的题目列表Swap Two Variables Without a Temporary Variable
类型:online_judge
Given two integers a and b, swap their values without using a third variable.
Input
One line containing a b.
Output
Print the swapped values: b a.
Explain the applicability and potential risks of different approaches.
Example
Input
30 40
Output
40 30