AtCoder Grand Contest 051 (Good Bye rng_58 Day 2)
翻译中…
Problem Statement
翻译中…
Snuke has infinite number of square tiles and regular triangular tiles with side lengths $1$. How many ways are there to form a regular dodecagon ($12$-sided polygon) with side lengths $d$ using the tiles? Compute the answer modulo $998,244,353$.
翻译中…
Formally speaking,
翻译中…
- He can use an arbitrary number of tiles.
- No two tiles may overlap.
- The union of the regions filled by the tiles must be a regular dodecagon without holes.
- We consider two ways to be the same if we can change one way to the other way by rotations and translations (but not reflections), such that each tile perfectly matches with a tile of the same type.
翻译中…
Constraints
翻译中…
$1 \leq d \leq 10^6$- All values in the input are integers.
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
d
翻译中…
Output
翻译中…
Print the answer.
翻译中…
样例
Input #1
1
Output #1
1
The following picture shows the only way.

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