A Sequence Over a Field
CodeChefOpen on judge ↗
You are given the set $\mathbb{Z}_p = \{0,1, \ldots p-1\}$ where $p$ is an odd prime. We define the operation $\oplus$ on the elements of this set as $a \oplus b= (a+b) % p$. We also define the operation $\otimes$ on the elements of this set as $a \otimes b = (a \times b) %p$. Now, we notice that $(\mathbb{Z}_p,\oplus,\otimes)$ form a field. Let us refer to the field as $\mathbb{F}_p$. Now, we co
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start