You are viewing a single comment's thread. Return to all comments →
int main() { int i,b,a,h,a1;
scanf("%d %d",&b,&a); h=2*a/b; a1=b*h/2; if(a1==a){ printf("%d",h); } else { printf("%d",h+1); } printf("\n"); return 0;
}
Seems like cookies are disabled on this browser, please enable them to open this website
Minimum Height Triangle
You are viewing a single comment's thread. Return to all comments →
include
int main() { int i,b,a,h,a1;
}