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

30368번 - Camp room assignment 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
3 초 1024 MB37282573.529%

문제

In the JAG country, there are a total of $m$ universities, and we plan to invite 2ドルn$ students to a training camp. Each student is affiliated with one of the $m$ universities. During the training camp, the students will be accommodated in $n$ twin rooms, meaning that each room will be assigned to exactly two students.

To promote diverse interactions among the students, our goal is to achieve a "good room assignment". A room assignment is considered good if and only if the students sharing the same room come from different universities.

Here, we are wondering how often a good room assignment is feasible. There are $m^{2n}$ possible sequences of universities to which each student belongs, and please find for how many of them there is a good room assignment.

Actually, we don't yet know how many rooms we can provide. Therefore, for each of $n = 1, 2, \dots , m,ドル please find for how many of the sequences of universities there is a good room assignment.

Since the answer may be huge, print the answers modulo 998ドル,244円,353円$.

입력

The input is a single line containing an integer $m$ between 1ドル$ and 200ドル,000円,ドル inclusive.

출력

Output $m$ lines. In the $i$-th line, you should output the answer for $n = i$.

제한

예제 입력 1

3

예제 출력 1

6
54
510

예제 입력 2

5

예제 출력 2

20
540
14300
370300
9454620

예제 입력 3

20

예제 출력 3

380
158460
63889400
636003875
443532759
163564701
433390846
160318339
979712600
445802634
862134704
374397421
898644169
181404073
884138261
856576908
608198482
349239556
724235122
812173715

힌트

출처

Contest > ICPC Japanese Alumni Group > JAG Summer Camp > JAG Summer Camp 2023 Day 3 C번

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

출처

대학교 대회

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

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