Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _USE_MATH_DEFINES
- #include <iostream>
- #include <conio.h>
- #include <string>
- #include <set>
- #include <map>
- #include <algorithm>
- #include <string>
- #include <math.h>
- #include <vector>
- #include <cmath>
- #include <sstream>
- using namespace std;
- int main()
- {
- long a, b;
- scanf_s("%d %d", &a, &b);
- if ((a % 2) != (b % 2) && a > 0 && b > 0)
- cout << b << " " << a;
- else
- cout << a << " " << b;
- _getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment