You are viewing a single comment's thread. Return to all comments →
you need to use mod 1234567 in your for cycle after multiplication or else your int will become way too big.
The problem uses huge numbers and their multiplications will quickly become larger than the MAX interger any programing language uses.
Seems like cookies are disabled on this browser, please enable them to open this website
Connecting Towns
You are viewing a single comment's thread. Return to all comments →
you need to use mod 1234567 in your for cycle after multiplication or else your int will become way too big.
The problem uses huge numbers and their multiplications will quickly become larger than the MAX interger any programing language uses.