Monday, August 18, 2014

COJ 1102. You Can Say 11

For solving this we need to know only the rule of divisibility by 11. The rule is, sum up the digits in the odd places and digits in the even places and then subtract smaller form bigger, and if the result is divisible on 11 then the number itself is divisible on 11.



       FULL SOURCE CODE

No comments:

Post a Comment