Rectangle Placement
시간 제한1초메모리 제한1024 MB
W x H 격자에 변을 공유하지 않는 두 직사각형을 그리는 경우의 수를 998244353으로 나눈 나머지를 구한다.
문제
Grammy has a rectangular grid with vertical lines and horizontal lines. She wants to draw two non-intersecting rectangles along the grid lines. One rectangle is allowed to be completely contained inside another, but the two rectangles cannot intersect at any point, including edges and corners.
Please count the number of different rectangle drawings, modulo . Two drawings are considered different if and only if a grid edge is colored in one of the drawings but not in the other.
입력
The only line contains two integers and ().
출력
Output a single integer, denoting the number of different drawings modulo .