URI 1013 The Greatest Solution in C++
URI 1013 Solution đŸ‘€ The Greatest đŸ‘€in C++
URI Online Judge Solution 1013 The Greatest in C++
Before seeing the solution make sure that you tried enough. Don’t paste the whole code, just find out the logic. If you stuck in trouble, just inform me on comment.
Before seeing the solution make sure that you tried enough. Don’t paste the whole code, just find out the logic. If you stuck in trouble, just inform me on comment.
URI Online Judge Solution 1013 The Greatest in C++
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,MaiorAB,s,MAX;
cin>>a>>b>>c;
MaiorAB=(a+b+abs(a-b))/2;
MAX=(MaiorAB+c+abs(MaiorAB-c))/2;
cout<< MAX<<" eh o maior"<<endl;
return 0;}
can you please explain that formula ?
ReplyDelete