Today, the author is not feeling quite well, so this problem will not have a long intro, with kings, rice fields, little Billies and Johnies, or some Elven related things. A file will be provided that describes one number. In first row of file, a number \( N \) is given. The second row contains \( N \) digits, which are **not** separated. Those digits represent a number \( L \).

Let's imagine a function \( R(x, y) \). The function gives the remainder of \( x \) when dividing with \( y \), simple as that.

Now, if number \( A = R(L, 9) \), number \( B = R(L, 77) \) and number \( C = R(L, 41) \), calculate the following value: \( 3 \times A - 7 \times B + 10 \times C \).

The number \( L \) is described in file which can be downloaded from here: **LINK**

×

Problem Loading...

Note Loading...

Set Loading...