| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 (추가 시간 없음) | 1024 MB | 8 | 7 | 5 | 83.333% |
Grammy has a rectangular grid with $W$ vertical lines and $H$ 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 998ドル,244円,353円$. 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 $W$ and $H$ (4ドル \leq W,H \leq 10^9$).
Output a single integer, denoting the number of different drawings modulo 998ドル,244円,353円$.
4 5
275
723435135 239873451
832099301