ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1214. Strange Procedure

C++
Posted by D4nick 27 Mar 2020 22:11
#include <iostream>
using namespace std;
int main() {
    long int x, y;
    cin >> x >> y;
    if (x <= 0 || y <= 0)
        cout << x << ' ' << y;
    else if ((x + y) % 2 != 0)
        cout << y << ' ' << x;
    else
        cout << x << ' ' << y;
}
Re: C++
Posted by Levon Oganesyan 29 Mar 2020 19:21
Do not post your AC code!!