Skip to content

Instantly share code, notes, and snippets.

@oskimura
Created December 12, 2017 14:40
Show Gist options
  • Save oskimura/b70aac58496192697e6202b011cd3e56 to your computer and use it in GitHub Desktop.
Save oskimura/b70aac58496192697e6202b011cd3e56 to your computer and use it in GitHub Desktop.
#include "iostream"
#include <cmath>
int main()
{
int x, y;
while (std::cin >> x >> y) {
if (x < y) {
std::cout << x << " " << y << std::endl;
}
else {
std::cout << y << " " << x << std::endl;
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment