Solution for Mathematics challenge-Minimum Height Triangle-hackerRank

C++ solution for hackerRank Mathematics challenge-Minimum Height Triangle

Code:-Dinesh Kumar E 

#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int a,b,h;
cin>>b>>a;
h=2*a/b+bool((2*a)%b);
cout<<llround(h);
}

Comments

Popular Posts