1 solutions

  • 0
    @ 2025-12-3 16:12:49

    C++ :

    #include<iostream>
    using namespace std;
    int main()
    { 
    int a,b=0,c=0,d=0,e=0;
    cin>>a>>b;
    if (a%2==0)
    {
    	c=1;
    	d=2;
    	cout<<c<<" ";
    }
    else
    {
    	c=2;
    	d=1;
    	cout<<c<<" ";
    }
    if (b%2==0)
    {
    	e=3;
    	cout<<d<<" "<<e<<endl;
    }
    else
    {
    	e=3;
    	cout<<e<<" "<<d<<endl;
    }
     return 0;
     }
    
    • 1

    Information

    ID
    833
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    10
    Tags
    (None)
    # Submissions
    5
    Accepted
    5
    Uploaded By