10242 - Fourth Point !!

All about problems in Volume 102. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 10242 - Fourth Point!! WHY WA??

Post by brianfry713 »

Naweed wrote:oh ACCEPTED at last, after so many submissions.... But there are few things i need to know from this problem..

Why do we have to use DOUBLE instead of float? what are the ranges of doubles & floats actually??
& what is the difference between abs() & fabs() ??
Thank you
double is more precise than float, I'd recommend never using float.
http://en.wikipedia.org/wiki/IEEE_floating_point
http://www.cplusplus.com/reference/cmath/fabs/
http://www.cplusplus.com/reference/cstdlib/abs/
Check input and AC output for thousands of problems on uDebug!
Post Reply

Return to “Volume 102 (10200-10299)”