1 solutions

  • 0
    @ 2025-12-2 15:38:43

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int a,b,c,d;
    int main()
    {
    	cin>>a>>b>>c>>d;
    	if(a>b) swap(a,b);
    	if(c>d) swap(c,d);
    	if(a>=c and b>=d) cout<<1;
    	else cout<<2;
    	
    	return 0;
    }
    
    • 1

    Information

    ID
    653
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    10
    Tags
    # Submissions
    4
    Accepted
    3
    Uploaded By