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

7791번 - KBTU party 다국어

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

문제

At the latest KBTU ”Commencement” party Bakhytzhan noticed that there were n girls D1,D2,...,Dn and 2n−1 boys B1,B2,...,B2n−1. And every girl Dj knows exactly boys B1,B2,...,B2j−1. Throughout the evening party Bakhytzhan tried to count the number of possible choices of exactly r acquainted boys and girls pairs for dancing. That’s why he missed his chance for dancing. Please, write a program that would help Bakhytzhan don’t miss a chance to dance at the next party.

입력

The input file contains two integer numbers n and r (1 ≤ n,r ≤ 106) separated by a space.

출력

Output file should contain answer to Bakhytzhan’s problem – residue modulo 2946859

제한

예제 입력 1

3 2

예제 출력 1

18

힌트

출처

Contest > KBTU Open > KBTU Open 2008 K번

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

출처

대학교 대회

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

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