QOJ.ac

QOJ

Limite de temps : 1.0 s Limite de mémoire : 1024 MB Points totaux : 100 Hackable ✓

#18126. ucup-team7610

Statistiques

你为什么不打 Universal Cup?

如果你曾拥有过 ucup 账号,你就会知道 ucup 账号的格式是 ucup-teamXXXX,其中 XXXX 是一个至少有三位数字且没有前导零的数字。

现在给定几个账号名称,请判断它们是否符合 ucup 账号格式。

输入格式

第一行包含测试用例的数量 $T$ ($1 \le T \le 10^5$)。

对于每个测试用例,包含一行一个字符串 $s$ ($1 \le |s| \le 50$),仅由小写字母、数字和连字符 - 组成,表示一个账号名称。

输出格式

对于每个测试用例,输出一行 YESNO,表示它是否符合 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.