Problems
easySwap Two Numbers
2 Koda Coins

Swap Two Numbers

easy2s limit💾 64 MB

Description

Given two integers A and B, swap their values without using a third variable. Output the swapped values.


Input Format

  • Two space-separated integers A and B.

  • Output Format

  • Print B then A, space-separated.

  • Constraints

  • -10^9 <= A, B <= 10^9