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 คือตัวเลขที่มีอย่างน้อยสามหลักและไม่มีเลขศูนย์นำหน้า

ตอนนี้กำหนดชื่อบัญชีหลายชื่อ จงตรวจสอบว่าชื่อเหล่านั้นตรงตามรูปแบบบัญชี 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.