Universal Cup Judging System

Universal Cup

حد الوقت: 3.0 s حد الذاكرة: 1024 MB مجموع النقاط: 100 قابلة للهجوم ✓
الإحصائيات

كتب ميشا بضعة أعداد صحيحة يعتبرها جميلة في دفتر ملاحظات وذهب ليلعب بعلامات الجمع والطرح. يعتبر ميشا سلسلة من علامات الجمع والطرح متوازنة إذا كانت تحتوي على عدد متساوٍ من كلتا العلامتين وتنتهي بعدد جميل من علامات الطرح. كم سلسلة متوازنة بطول $2, 4, \dots, 2n$ توجد؟ قد تكون الإجابات كبيرة جداً، لذا أوجدها بباقي القسمة على $998244353$.

الإدخال

يحتوي السطر الأول على عددين صحيحين $n$ و $m$: معامل أقصى طول للسلسلة وعدد الأعداد الصحيحة في دفتر ميشا ($1 \le n, m \le 200000$).

يحتوي السطر التالي على $m$ أعداد صحيحة غير سالبة ومختلفة في المدى $[0, n]$: الأعداد الموجودة في دفتر ميشا.

الإخراج

اطبع $n$ أسطر تحتوي على الإجابات بباقي القسمة على $998244353$.

مثال

الإدخال

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.