Universal Cup Judging System

Universal Cup

Süre Sınırı: 3.0 s Bellek Sınırı: 1024 MB Toplam puan: 100 Hack'lenebilir ✓
İstatistikler

Misha skrifaði niður nokkrar heiltölur sem honum finnast fallegar í stílabók og fór að leika sér með plúsa og mínusa. Hann telur streng af plúsum og mínusum vera í jafnvægi ef hann hefur jafn mörg tákn af hvorri gerð og endar á fallegum fjölda mínusa. Hversu margir strengir í jafnvægi af lengd $2, 4, \dots, 2n$ eru til? Svörin geta verið mjög stór, svo finndu þau modulo $998244353$.

Inntak

Fyrsta línan inniheldur tvær heiltölur, $n$ og $m$: stika fyrir hámarkslengd strengs og fjölda heiltalna í stílabók Misha ($1 \le n, m \le 200000$).

Næsta lína inniheldur $m$ ólíkar ekki-neikvæðar heiltölur á bilinu $[0, n]$: tölurnar úr stílabók Misha.

Úttak

Prentaðu $n$ línur með svörunum modulo $998244353$.

Dæmi

Inntak

5 3
1 2 3

Úttak

1
3
10
34
120

Editorials

IDTypeStatusTitlePosted ByLast UpdatedActions
#1081EditorialOpenNew Editorial for Problem #17166GotoHiotoriView
#1537EditorialOpenNew Editorial for Problem #17166Xuan0109View
#1217EditorialOpen题解jianglyView

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.