http://www.codechef.com/viewsolution/3267094
please help!! thanks in advance
Your code got AC with slight changes.
- There is no need to divide area by 2 as we want only position not exact answer. This removed the requirement of float.Using float or double in code increase the chances of precision errors. So, I changed float to int.
- Minimum and maximum values of integer are defined as macro
INT_MIN
andINT_MAX
respectively in<climits>
header.
1 Like