1 / 4
Jan 2016

Yes. Your code fails for really large numbers. The input constraints say that the numbers can have up to 10000 digits.

Well, that is your task. Some / several SPOJ problems have been designed in a way that prohibits the naive use of standard data types. Sometimes you can work around this issue with clever algorithms or by switching to languages with built-in features (e.g. unlimited integer size in python) or libraries like BigInt in JAVA...

Suggested Topics

Topic Category Replies Views Activity
C and C++ 0 14 7d

Want to read more? Browse other topics in C and C++ or view latest topics.