Universal Cup Judging System

Universal Cup

Time Limit: 3.0 s Memory Limit: 1024 MB Total points: 100 Hackable ✓
Statistics

Миша өзі әдемі деп санайтын бірнеше бүтін санды дәптерге жазып алды да, плюстер мен минустармен ойнауға кетті. Ол плюстер мен минустардан тұратын жолды, егер онда екі таңбаның да саны тең болса және соңы әдемі санға тең минустармен аяқталса, теңгерімді деп санайды. Ұзындығы $2, 4, \dots, 2n$ болатын қанша теңгерімді жол бар? Жауаптар өте үлкен болуы мүмкін, сондықтан оларды $998244353$ модулі бойынша табыңыз.

Кіріс деректер

Бірінші жолда екі бүтін сан $n$ және $m$ берілген: жолдың максималды ұзындығының параметрі және Мишаның дәптеріндегі бүтін сандардың саны ($1 \le n, m \le 200000$).

Келесі жолда $[0, n]$ аралығындағы өзара әртүрлі $m$ теріс емес бүтін сан берілген: Мишаның дәптеріндегі сандар.

Шығыс деректер

$998244353$ модулі бойынша жауаптары бар $n$ жолды шығарыңыз.

Мысал

Кіріс деректер

5 3
1 2 3

Шығыс деректер

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.