問題一覧 > 通常問題

No.986 Present

レベル : / AI推定難易度 : 1700 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 31
作問者 : tubuann1 / テスター : beet
お気に入りにしたユーザー ProblemId : 3875 / 自分の提出
問題文最終更新日: 2020-02-11 19:02:58
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 contest 236 (順位表) の他の問題:

Problem Statement

tubuann is a mysterious creature living in the world of non-negative integers.
For tubuann's birthday, you have decided to give a set $S$ of size $N$ consisting of non-negative integers less than $2^M$.
tubuann is initially at $0$ and can perform the following action any number of times, possibly $0$ times.

  • Let $a$ be the current location.
  • Choose one $s \in S$ and move to $a \oplus s$.
$\oplus$ denotes bitwise exclusive or.
Let $f(S)$ be the set of locations tubuann can move to when given $S$.
Find the following values.

  • The number of locations tubuann can move to when $S$ is chosen so as to maximize the number of locations tubuann can move to.
    That is, $\max |f(S)|$. Let this value be $A$.
  • The number of sets $S$ that maximize the number of locations tubuann can move to.
    That is, $|\{S\mid |f(S)|=A\}|$.
  • The number of sets of locations tubuann can move to when $S$ maximizes the number of locations tubuann can move to.
    That is, $|\{f(S)\mid |f(S)|=A\}|$.

Since these values can be very large, output them modulo $998244353$.

Two sets are said to be different if there exists an element that is contained in one of the sets but not in the other.

Input

$N\ M$

$1 \leq N \leq M \leq 2 \times 10^5$
All inputs are integers.

Output

The number of locations tubuann can move to when $S$ is chosen so as to maximize the number of locations tubuann can move to.
The number of sets $S$ that maximize the number of locations tubuann can move to.
The number of sets of locations tubuann can move to when $S$ maximizes the number of locations tubuann can move to.
Output each of these three values modulo $998244353$ in this order on one line, separated by spaces.

Sample

Sample 1
Input
1 1
Output
2 1 1

Sample 2
Input
1 2
Output
2 3 3

Sample 3
Input
7 100
Output
128 275646563 10439943

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