3 solutions

  • 1
    @ 2024-6-16 11:05:01
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    
    	float a,b,c,m;
    	cin>>a>>b>>c;
    	if(a>b)
    	{	
    		if(a>c)
    		{
    			m=a;
    		}
    		else
    		{
    			m=c;
    		}		
    	}
    	else
    	{	
    		if(b>c)
    		{
    			m=b;
    		}
    		else
    		{
    			m=c;
    		}
    	}
    	cout<<m;
    	return 0;
    }
    

    Information

    ID
    14
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    192
    Accepted
    69
    Uploaded By