AtCoder Beginner Contest 278
Ex
make 1
AtCoder
⌀ 3768
原题
←G →
翻译中…

Problem Statement

翻译中…

A sequence $S$ of non-negative integers is said to be a good sequence if:

翻译中…
  • there exists a non-empty (not necessarily contiguous) subsequence $T$ of $S$ such that the bitwise XOR of all elements in $T$ is $1$.
翻译中…

There are an empty sequence $A$, and $2^B$ cards with each of the integers between $0$ and $2^B-1$ written on them. You repeat the following operation until $A$ becomes a good sequence:

翻译中…
  • You freely choose a card and append the integer written on it to the tail of $A$. Then, you eat the card. (Once eaten, the card cannot be chosen anymore.)
翻译中…

How many sequences of length $N$ can be the final $A$ after the operations? Find the count modulo $998244353$.

翻译中…

What is bitwise XOR? The bitwise $\mathrm{XOR}$ of non-negative integers $A$ and $B$, $A \oplus B$, is defined as follows. When $A \oplus B$ is written in binary, the $k$-th lowest bit ($k \geq 0$) is $1$ if exactly one of the $k$-th lowest bits of $A$ and $B$ is $1$, and $0$ otherwise. For instance, $3 \oplus 5 = 6$ (in binary: $011 \oplus 101 = 110$).

翻译中…

Constraints

翻译中…
  • $1 \leq N \leq 2 \times 10^5$
  • $1 \leq B \leq 10^7$
  • $N \leq 2^B$
  • $N$ and $B$ are integers.
翻译中…

Input

翻译中…

The input is given from Standard Input in the following format:

翻译中…

N B

翻译中…

Output

翻译中…

Print the answer.

翻译中…

样例

Input #1
2 2
Output #1
5
The following five sequences of length $2$ can be the final $A$ after the operations. - $(0, 1)$ - $(2, 1)$ - $(2, 3)$ - $(3, 1)$ - $(3, 2)$
Input #2
2022 1119
Output #2
293184537
Input #3
200000 10000000
Output #3
383948354
题目信息
题号
abc278_h
时间限制
3 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。