Universal Cup Judging System

Universal Cup

時間限制: 1.0 s 記憶體限制: 1024 MB 總分: 100 可 Hack ✓
统计

وصف المسألة

لماذا لا تشارك في Universal Cup؟

إذا كان لديك حساب ucup من قبل، فستعرف أن تنسيق حساب ucup هو ucup-teamXXXX، حيث XXXX هو عدد يتكون من ثلاثة أرقام على الأقل وبدون أصفار بادئة.

الآن، بالنظر إلى عدة أسماء حسابات، يرجى تحديد ما إذا كانت تطابق تنسيق حساب ucup.

الإدخال

يحتوي السطر الأول على عدد حالات الاختبار $T$ ($1 \le T \le 10^5$).

لكل حالة اختبار، يحتوي سطر واحد على سلسلة نصية $s$ ($1 \le |s| \le 50$) تتكون فقط من أحرف صغيرة وأرقام والشرطة -، تمثل اسم حساب.

الإخراج

لكل حالة اختبار، اطبع سطرًا واحدًا يحتوي على YES أو NO، يوضح ما إذا كان يطابق تنسيق ucup.

أمثلة

الإدخال 1

5
abcdeabcdeabc
ucup-team7610
ucup-team22
ucup-team01234
ucup-team123456789123456789

الإخراج 1

NO
YES
NO
NO
YES

ملاحظة

هل سنعيش لنرى اليوم الذي يتم فيه تسجيل ucup-team123456789123456789؟

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.