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.