Universal Cup Judging System

Universal Cup

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

תיאור הבעיה

למה אתה לא משתתף ב-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.