Problem list
Log in
#r02743 · Online Judge > GoldOJ

Swap Two Integers

Bronze V 2.0 s 256 MB

Read two integers $A$ and $B$ and print them in reversed order: $B$ then $A$.

Input

Two integers $A$ and $B$.

Output

Print $B$ and $A$ separated by a space.

Example 1

Input
1 2
Output
2 1

Example 2

Input
100 -50
Output
-50 100
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code