#D. 喜闻乐见

    Type: Default File IO: happy 50ms 5MiB

喜闻乐见

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

喜闻乐见(happy)

宁宁在数轴上有 nn 个点,其中第 ii 个位于 100100100i100^{100^{100i}}。宁宁每次会选择两个点 A,BA,B,抹去 A,BA,B 加入 AA 关于 BB 的对称点。

操作进行 n1n-1 次,最后剩下点的位置有多少种不同的可能?答案对 998244353998244353 取模。

输入格式

一行一个正整数表示 nn

输出格式

一行一个正整数表示答案。

测试样例

样例输入 样例输出
3 12
4 84
5 770

数据范围

一共 100100 个测试点,测试点 ii 满足 n=in=i

  • 时间限制:0.05s\tt 0.05s
  • 空间限制:5MB\tt 5MB

NOIP模拟赛(八)

Not Attended
Status
Done
Rule
IOI
Problem
4
Start at
2023-11-16 8:00
End at
2023-11-16 12:00
Duration
4 hour(s)
Host
Partic.
20