아직 만들고 있는 페이지입니다.

이 페이지는 아직 만드는 중입니다. 보이는 내용은 바뀔 수 있습니다.

Melborp Lacissalc

시간 제한2초메모리 제한1024 MB

요약
0부터 k-1까지의 값을 원소로 하는 길이 n 배열 중, 합이 k의 배수가 되는 연속 부분배열의 개수가 정확히 t인 배열의 수를 998244353으로 나눈 나머지를 구합니다.
난이도

보통10점 중 7점

유형
조합론, 수학, 동적 계획법, 누적 합
정답자
아직 제출이 없습니다

문제

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

For each array containing only numbers from 00 to k−1k-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 nn such that their goodness is tt. Since the answer can be enormous, output the answer modulo 998,244,353998\\,244\\,353.

입력

A single line contains three integers nn, kk, tt (1≤n,k≤641 \leq n, k \leq 64, 0≤t≤n(n+1)20 \leq t \leq \frac{n(n+1)}{2}).

출력

Output a single integer denoting the answer modulo 998,244,353998\\,244\\,353.

예제3

  1. 예제 1

    입력
    2 5 1
    
    예상 출력
    12
    
  2. 예제 2

    입력
    7 10 15
    
    예상 출력
    2016
    
  3. 예제 3

    입력
    46 50 171
    
    예상 출력
    645560469