No.8050 64Ki-Acre Forest Golf
Problem Statement
You are given integers $y, u, k, i, c, o, d, e, r$. Find the remainder when $f(y, u, k, i, c, o, d, e, r)$ is divided by $256$.
For the definition of the function $f: \mathbb{Z}^9 \rightarrow \mathbb{Z}$, see here.
Input
$y$ $u$ $k$ $i$ $c$ $o$ $d$ $e$ $r$
All values are integers. The following constraints are satisfied.
- $0 \le y, u, k, i, c, o, d, e, r \le 2$
Output
Output the computed value on one line, followed by a newline.
Sample
Sample 1
Input
0 0 0 0 0 0 0 0 0
Output
153
$f(0, 0, 0, 0, 0, 0, 0, 0, 0) = -3707495$. Output $153$, the remainder when divided by $256$.
Sample 2
Input
0 1 2 0 1 2 0 1 2
Output
97
$f(0, 1, 2, 0, 1, 2, 0, 1, 2) = 20951649$. Output $97$, the remainder when divided by $256$.
Sample 3
Input
2 2 2 2 2 2 2 2 2
Output
223
$f(2, 2, 2, 2, 2, 2, 2, 2, 2) = 20330200799$. Output $223$, the remainder when divided by $256$.
Notes
The size of the submitted code is limited to at most 64 KiB. Also, network access is not available from the judge environment.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
くれちー