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

Mô tả bài toán

Tại sao bạn không tham gia Universal Cup?

Nếu bạn từng có tài khoản ucup, bạn sẽ biết rằng định dạng của tài khoản ucup là ucup-teamXXXX, trong đó XXXX là một số có ít nhất ba chữ số và không có chữ số 0 ở đầu.

Bây giờ, cho một số tên tài khoản, hãy xác định xem chúng có khớp với định dạng tài khoản ucup hay không.

Dữ liệu vào

Dòng đầu tiên chứa số lượng bộ dữ liệu $T$ ($1 \le T \le 10^5$).

Với mỗi bộ dữ liệu, một dòng chứa một xâu $s$ ($1 \le |s| \le 50$) chỉ gồm các chữ cái thường, chữ số và dấu gạch ngang -, biểu diễn tên tài khoản.

Kết quả

Với mỗi bộ dữ liệu, in ra một dòng YES hoặc NO, cho biết nó có khớp với định dạng ucup hay không.

Ví dụ

Dữ liệu vào 1

5
abcdeabcdeabc
ucup-team7610
ucup-team22
ucup-team01234
ucup-team123456789123456789

Kết quả 1

NO
YES
NO
NO
YES

Giải thích

Liệu trong đời này chúng ta có được chứng kiến ngày mà ucup-team123456789123456789 được đăng ký không?

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.