CF1971A.My First Sorting Problem

传统题 时间 2000 ms 内存 256 MiB 3 尝试 1 已通过 1 标签

My First Sorting Problem

You are given two integers xx and yy.

Output two integers: the minimum of xx and yy, followed by the maximum of xx and yy.

Input

The first line contains a single integer tt (1t1001 \leq t \leq 100) — the number of test cases.

The only line of each test case contains two space-separated integers xx and yy (0x,y90 \leq x, y \leq 9).

Output

For each test case, output two integers: the minimum of xx and yy, followed by the maximum of xx and yy.

Samples

10
1 9
8 4
1 4
3 4
2 0
2 4
6 9
3 3
0 0
9 9
1 9
4 8
1 4
3 4
0 2
2 4
6 9
3 3
0 0
9 9

在线编程 IDE

建议全屏模式获得最佳体验