Universal Cup Judging System

Universal Cup

Límite de tiempo: 1.0 s Límite de memoria: 1024 MB Puntuación total: 100 Hackeable ✓
Estadísticas

Deskripsi Masalah

Mengapa Anda tidak mengikuti Universal Cup?

Jika Anda pernah memiliki akun ucup, maka Anda pasti tahu bahwa format akun ucup adalah ucup-teamXXXX, di mana XXXX adalah sebuah bilangan dengan setidaknya tiga digit dan tanpa angka nol di depan.

Sekarang diberikan beberapa nama akun, tentukan apakah nama-nama tersebut sesuai dengan format akun ucup.

Format Masukan

Baris pertama berisi banyaknya kasus uji $T$ ($1 \le T \le 10^5$).

Untuk setiap kasus uji, satu baris berisi sebuah string $s$ ($1 \le |s| \le 50$) yang hanya terdiri dari huruf kecil, digit, dan tanda hubung -, yang menyatakan sebuah nama akun.

Format Keluaran

Untuk setiap kasus uji, keluarkan satu baris YES atau NO, yang menunjukkan apakah nama tersebut sesuai dengan format ucup.

Contoh

Masukan 1

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

Keluaran 1

NO
YES
NO
NO
YES

Catatan

Apakah kita akan hidup cukup lama untuk melihat hari ketika ucup-team123456789123456789 terdaftar?

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.