how about put INT_MAX ..if we add 1 there will be a overflow right ? On Wed, Feb 2, 2011 at 10:50 PM, Logic King <crazy.logic.k...@gmail.com>wrote:
> I have submitted the code of the same problem on spoj in C > as > > #include<stdio.h> > int main() > { > printf("&infin\n"); > return 0; > } > > > this code represents the infinity i suppose then why i am getting WA !! > > On Wed, Feb 2, 2011 at 10:30 PM, juver++ <avpostni...@gmail.com> wrote: > >> Output infinity sign :) >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- S.Nishaanth, Computer Science and engineering, IIT Madras. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.