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 <[email protected]>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++ <[email protected]> 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 [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<algogeeks%[email protected]>
>> .
>> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<algogeeks%[email protected]>
> .
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to