Codeforces Round 944 (Div. 4) A. My First Sorting Problem

Codeforces Round 944 (Div. 4)

A. My First Sorting Problem

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// By SnowDream
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=1e6+10;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int t;
cin >> t;
int x,y;
while(t--)
{
cin >> x >> y;
if(x<y)
cout << x << " " << y;
else
cout << y << " " << x;
cout << "\n";
}
return 0;
}

Codeforces Round 944 (Div. 4) A. My First Sorting Problem
http://snowdreamxue.github.io/2024/10/21/Codeforces Round 944 (Div. 4)/A. My First Sorting Problem/
Author
SnowDream
Posted on
October 21, 2024
Licensed under