3 solutions

  • 1
    @ 2025-3-16 16:49:49
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int a,b,c;
    	cin>>a>>b>>c;
    	if(a>=b&&b>=c||a<=b&&b<=c)
    	{
    		cout<<"Yes";
    	}
    	else 
    	{
    		cout<<"No";	
    	}
    	return 0;
    }
    
    
    • 0
      @ 2026-6-24 19:56:35

      #include<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a>=b&&b>=c||a<=b&&b<=c) { cout<<"Yes"; } else { cout<<"No"; } return 0; }

      • -1
        @ 2025-9-21 16:14:24
        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
        	int a,b,c;
        	cin>>a>>b>>c;
        	if(a>=b&&b>=c||a<=b&&b<=c)
        	{
        		cout<<"Yes";
        	}
        	else 
        	{
        		cout<<"No";	
        	}
        	return 0;
        }
        
        
        
        • 1

        Information

        ID
        2320
        Time
        1000ms
        Memory
        256MiB
        Difficulty
        1
        Tags
        (None)
        # Submissions
        175
        Accepted
        66
        Uploaded By