问题 B: Bloodline Counter

内存限制:512 MB 时间限制:2 S 标准输入输出
题目类型:传统 评测方式:Special Judge 上传者:
提交:1 通过:1

题目描述

链接:https://ac.nowcoder.com/acm/contest/57362/B
来源:牛客网
A tournament is a directed graph obtained by assigning a direction for each edge in an undirected complete graph.

We say a tournament is grand, if and only if the largest directed cycle in the tournament contains exactly kkk vertices.

Please count the number of different labeled grand tournaments of nnn vertices, modulo 998244353998\,244\,353998244353

输入格式

The first line contains two integers nnn and kkk (3≤k≤n≤5×1053\le k \le n \le 5 \times 10^53kn5×105), as explained in the problem statement.

输出格式

Output an integer representing the answer.

输入样例 复制

3 3

输出样例 复制

2