問題一覧 > ネタ問題

No.8050 64Ki-Acre Forest Golf

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 14
作問者 : くれちー
お気に入りにしたユーザー ProblemId : 2164 / 自分の提出
問題文最終更新日: 2020-04-03 18:36:49
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder April Fool Contest 2019 (順位表) の他の問題:

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もしくは右上の雲マークをクリックしてアカウントを作成してください。