Logo
(追記) (追記ここまで)

25645번 - Floor Tiles in a Park 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 1024 MB65480.000%

문제

Grammy is enjoying her holiday in Pigeland City Park. She was interested in the floor tiles in the park. After careful examination, she found out that each of the floor tiles is a $W \times H$ rectangle grid with vertical and/or horizontal colored segments on it. The colored segments have ends on grid points, and they split the rectangle into exactly $k$ subrectangles.

For instance, the following illustration shows a floor tile with $W = 9,ドル $H = 5,ドル $k = 4$.

Grammy wants to know the number of different floor tiles satisfying the condition. Please tell her the answer. Since the answer may be very large, you should output the number modulo 998ドル,244円,353円$.

Note that two floor tiles are considered different if and only if a grid line is colored in one tile but not in the other. If two tiles can turn into the same by rotation or reflection, they may still be considered as different tiles.

입력

The only line contains three integers $W,$ $H,$ $k$ (1ドル \leq W, H \leq 10^9,ドル 1ドル \leq k \leq \min(5, W \cdot H)$).

출력

Output a single integer denoting the number of different floor tiles modulo 998ドル,244円,353円$.

제한

예제 입력 1

2 3 5

예제 출력 1

7

예제 입력 2

4 3 5

예제 출력 2

307

예제 입력 3

6 372065168 5

예제 출력 3

114514

힌트

출처

Camp > Petrozavodsk Programming Camp > Summer 2022 > Day 2: ZJU Contest 1 A번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /