Universal Cup Judging System

Universal Cup

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

問題文

なぜ Universal Cup に出ないのですか?

ucup のアカウントを持ったことがあれば、ucup アカウントの形式が ucup-teamXXXX(ここで XXXX は先頭に余分なゼロを含まない3 桁以上の数)であることをご存じでしょう。

いくつかのアカウント名が与えられるので、それぞれが ucup アカウントの形式に一致するかどうかを判定してください。

入力

1 行目には、テストケースの個数 $T$ ($1 \le T \le 10^5$) が与えられます。

各テストケースについて、アカウント名を表す英小文字・数字・ハイフン - のみからなる文字列 $s$ ($1 \le |s| \le 50$) が 1 行で与えられます。

出力

各テストケースについて、ucup の形式に一致するかどうかを表す YES または NO を 1 行に出力してください。

入力例

入力例 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.