UVa 11879

From Algorithmist
Jump to navigation Jump to search

11879 - Multiple of 17[edit]

Summary[edit]

Check if a positive number less than or equal to is divisible by 17.

Explanation[edit]

Read the number as a string. Follow the algorithm given in the description or just simply do BigInteger modulo division to obtain the result.

Solutions[edit]

Input[edit]

34
201
2098765413
1717171717171717171717171717171717171717171717171718
0

Output[edit]

1
0
1
0

References[edit]

Categories here, use the form [[Category:UVa Online Judge|11879]] [[Category: Category Name]], see Categories for a list