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

18461번 - Disjoint LIS 다국어

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

문제

Let the LIS of a permutation be the length of its longest increasing subsequence.

A permutation is good if it is possible to find two increasing subsequences of length LIS that do not share any common elements.

Given n, find the number of good permutations with n elements. As the answer may be large, you only need to find it modulo 998 244 353.

입력

The first line of input contains one integer n (1 ≤ n ≤ 75): the number of elements.

출력

Output one integer: the number of good permutations with n elements, modulo 998 244 353.

제한

예제 입력 1

6

예제 출력 1

132

힌트

출처

Camp > Petrozavodsk Programming Camp > Winter 2020 > Day 3: 300iq Petrozavodsk Contest III D번

  • 문제를 만든 사람: 300iq
(追記) (追記ここまで)

출처

대학교 대회

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

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