Universal Cup Judging System

Universal Cup

実行時間制限: 1.0 s メモリ制限: 1024 MB 満点: 100 ハック可能 ✓
統計

Problembeskrivning

Varför tävlar du inte i Universal Cup?

Om du någonsin har haft ett ucup-konto vet du att formatet för ett ucup-konto är ucup-teamXXXX, där XXXX är ett tal med minst tre siffror och utan inledande nollor.

Givet ett antal kontonamn, avgör om de matchar formatet för ett ucup-konto.

Indata

Den första raden innehåller antalet testfall $T$ ($1 \le T \le 10^5$).

För varje testfall innehåller en rad en sträng $s$ ($1 \le |s| \le 50$) som endast består av små bokstäver, siffror och bindestrecket -, vilket representerar ett kontonamn.

Utdata

För varje testfall, skriv ut en rad med YES eller NO, som anger om det matchar ucup-formatet.

Exempel

Indata 1

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

Utdata 1

NO
YES
NO
NO
YES

Notering

Kommer vi någonsin få uppleva dagen då ucup-team123456789123456789 registreras?

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.