Phone List
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
给定 个长度不超过 的数字串,问其中是否存在两个数字串 ,使得 是 的前缀,多组数据。
输入格式
第一行一个整数 ,表示数据组数。
对于每组数据,第一行一个数 ,接下来 行输入 个数字串。
输出格式
对于每组数据,若存在两个数字串 ,,使得 是 的前缀,则输出 NO
,否则输出 YES
。
请注意此处结果与输出的对应关系!
2
3
911
97625999
91125426
5
113
12340
123440
12345
98346
NO
YES
提示
对于 的数据,。
0517
- Status
- Done
- Rule
- IOI
- Problem
- 4
- Start at
- 2025-5-17 14:00
- End at
- 2025-5-17 17:30
- Duration
- 3.5 hour(s)
- Host
- Partic.
- 40