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

16534번 - Sequences 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB77454159.420%

문제

Write program sequences to count the number of all non-decreasing sequences of length n containing integers from 1 to m, where every element can occur at most k times.

입력

On the standard input, there are given integers n, m and k, separated by spaces.

출력

On the standard output, your program has to print the count of the described sequences.

제한

  • 0 < n < 31
  • 0 < m < 31
  • 0 < k < 31.

예제 입력 1

3 4 2

예제 출력 1

16

힌트

The sequences are: (1,1,2), (1,1,3), (1,1,4), (1,2,2), (1,2,3), (1,2,4), (1,3,3), (1,3,4), (1,4,4), (2,2,3), (2,2,4), (2,3,3), (2,3,4), (2,4,4), (3,3,4), (3,4,4).

출처

Olympiad > International Autumn Tournament in Informatics > 2017 > Group B (Juniors) 1번

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

출처

대학교 대회

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

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