問題一覧 > ネタ問題

No.8108 A Math Quiz That Gradually Gets Weird

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 26
作問者 : MasKoaTS / テスター : 👑 p-adic
お気に入りにしたユーザー ProblemId : 10501 / 自分の提出
問題文最終更新日: 2024-03-15 17:42:07
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 2024 (順位表) の他の問題:

Problem Statement

You are given a positive integer $n$. Find the value of $f(n)$, defined as follows, modulo $\mathrm{mod} \ 998244353$. $$ f(n) = \dfrac{ (A + G)(C - F) }{ D \sqrt{ B - A + E } } \left( \left( \dfrac{ K + \sqrt{ \left\lfloor \dfrac{ A (J K)^{J} }{ H + J } \right\rfloor } }{ L } \right)^{ \dfrac{ J n }{ I } } - \left( \dfrac{ -G \log_{K} (G I + I J L) } { \dfrac{ \gcd(F, A - G + H) }{ I - G } + \left( \dfrac{ K^{J} }{ C } \right)^{ \sin \left( \dfrac{ A + I + L }{ K } \pi \right) } } \right)^{ \dfrac{ n }{ B^{E} } } \right) $$ Here, $\lfloor x \rfloor$ denotes the greatest integer not exceeding $x$, and $\gcd(x, y)$ denotes the greatest common divisor of $x$ and $y$.
Also, the argument of $\sin x$ is expressed in radians (that is, "$x$ radians").

Here, $A, B, C, D, E, F, G, H, I, J, K, L$ in the above formula are all integer constants, and
as of April 1, 2024 CE, they make all the sentences in the "Math Quiz" section below true.

However, for a constant enclosed in lenticular brackets 【】, choose only the $1$ most appropriate option from the choices presented below it, and assign its number to the constant.

For example, given the following text, assign $3$ to $x$.

  • A 【$x$】 is an integer greater than or equal to $2$ that has no positive divisors other than $1$ and itself.

    Choices for 【$x$】:

    1. Odd number

    2. Even number

    3. Prime number

    4. Composite number

Math Quiz

  • The prime factorization of $2024$ is expressed as $2024 = 2^{A} \times 11 \times B$.


  • For any integer $m$ greater than or equal to $3$, the sum of the interior angles and the sum of the exterior angles of a regular $m$-gon are, in degrees, $(C m + D)$ degrees and $(E m + F)$ degrees, respectively.


  • There is a coin. When the coin is tossed once, it comes up heads with probability $\dfrac{1}{3}$, and tails with probability $\dfrac{2}{3}$.

    Let $p(x)$ represent the probability of getting at least one heads when it is tossed consecutively $x$ times.

    In this case, $p(1) = \dfrac{G}{3}$ and $p(3) = \dfrac{H}{27}$.


  • The most appropriate reply to the following question is 【$I$】.

    • What is the capital city of Australia?

    Choices for 【$I$】:

    1. Sydney.

    2. Melbourne.

    3. Adelaide.

    4. Canberra.


  • The answer to the following riddle, expressed as a compositional formula, is 【$J$】.

    • What mineral makes flirtatious gestures at a knight?

    Choices for 【$J$】:

    1. $\mathrm{Cu}\mathrm{Ti}\mathrm{O}_{3}$

    2. $\mathrm{Fe}\mathrm{Ti}\mathrm{O}_{3}$

    3. $\mathrm{Mg}\mathrm{Ti}\mathrm{O}_{3}$

    4. $\mathrm{Mn}\mathrm{Ti}\mathrm{O}_{3}$


  • Wkh Fdhvdu flskhu lv d wbsh ri vxevwlwxwlrq flskhu, zkhuh hdfk fkdudfwhu lq wkh sodlqwhaw lv vkliwhg eb wkuhh srvlwlrqv lq doskdehwlfdo rughu wr fuhdwh wkh flskhuwhaw.

    Lw zdv qdphg diwhu Jdlxv Mxolxv Fdhvdu, d plolwdub ohdghu ri dqflhqw Urph, zkr lv nqrzq wr kdyh xvhg wklv hqfubswlrq phwkrg.

    Eb wkh zdb, li zh ghqrwh wkh ydoxh rewdlqhg eb uhprylqj wkh xqlwv $\mathrm{[M \cdot v]}$ iurp wkh Sodqfn frqvwdqw dv $k$, wkhq $N = \lfloor 10^{34} k \rfloor$.

    ※ The notation $N$ is not a typo (it is written this way intentionally).


  • 【$L$】なしばしあうたしあう:

    • たうかひはひは・は・かうた・あひなしか・か・かうなひさひたみ、やうかひか・はうたしさひましま・た・た・ばひばひたしな・らひ。

    【$L$】なしさみわうた・かうさひ:

    1. はしあうざひやしあうかひ

    2. たうらみだうらみがうさ・

    3. さ・ら・さひな・なひたうかひ

    4. あしかうなしはしさしまひたひ

Notes

Under the constraints of this problem, $f(n)$ is guaranteed to be a rational number.

When it is expressed as an irreducible fraction $p / q$, it is guaranteed that an integer $r$ $(0 \leq r < 998244353)$ satisfying $p \equiv q \times r \pmod{998244353}$ is
uniquely determined, so find this $r$.

Constraints

  • $1 \leq n \leq 1000$

  • $n$ is an integer

Input

The input is given in the following format.

$n$
  • Line $1$ contains $n$.

Output

Output the answer on $1$ line.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。