Universal Cup Judging System

Universal Cup

Time Limit: 1.0 s Memory Limit: 1024 MB Total points: 100 Hackable ✓
Statistics

Условие задачи

Почему вы не участвуете в 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.