variable swap
Submit solution
Points:
10
Time limit:
1.0s
Memory limit:
64M
Authors:
Problem type
Allowed languages
Java 19, Java 8
Description
輸入兩個整數,輸出交換後的值。
限制:不能使用第三個變數暫存使用或直接交換輸出,抓到直接 0 分
Sample input & output
Input #1
1
2
Output #1
2
1
Input #2
-1
-2
Output #2
-2
-1
Comments