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

25654번 - Melborp Lacissalc 다국어

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

문제

Grammy has a favorite number $k$. She thinks that all the numbers divisible by $k$ are good.

For each array containing only numbers from 0ドル$ to $k-1,ドル Grammy defines its goodness as the number of non-empty consecutive subarrays that sum to a good number.

Please count the number of arrays of length $n$ such that their goodness is $t$. Since the answer can be enormous, output the answer modulo 998ドル,244円,353円$.

입력

A single line contains three integers $n,ドル $k,ドル $t$ (1ドル \leq n, k \leq 64,ドル 0ドル \leq t \leq \frac{n(n+1)}{2}$).

출력

Output a single integer denoting the answer modulo 998ドル,244円,353円$.

제한

예제 입력 1

2 5 1

예제 출력 1

12

예제 입력 2

7 10 15

예제 출력 2

2016

예제 입력 3

46 50 171

예제 출력 3

645560469

힌트

출처

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

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

출처

대학교 대회

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

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