1 solutions

  • 0
    @ 2025-12-2 16:03:33

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int a,n,b;
    	cin>>a>>n>>b;
        if(a+n>b&&a+b>n&&n+b>a)
        {
        	cout<<"yes"<<endl<<a+n+b;
    	}
    	else
    	{
    		cout<<"no"<<endl<<a+n+b;
    	}
    	return 0;
    }
    
    • 1

    Information

    ID
    709
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    9
    Tags
    # Submissions
    9
    Accepted
    6
    Uploaded By