Why you expect it should work...?
the constant you assigned to mod is not within int range

declare it as

long long mod = 10000000000283LL;

and it would work.

On Tue, Feb 21, 2012 at 8:10 PM, Anurag Gupta <[email protected]>wrote:

> how can we take mod by a very large number
> for example 10000000000283
> int mod = 10000000000283;
> ans % mod
>
> is not working
>
> Please Help
>
> --
> 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.
>
>


-- 
-- 
Prakhar Jain
IIIT Allahabad
B.Tech IT 3rd Year
Mob no: +91 9454992196
E-mail: [email protected]
          [email protected]

-- 
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