Lss233's.Blog()

Lss233's.Blog()

Everything is possible by code.

马上订阅 Lss233's.Blog() RSS 更新: https://blog.lss233.com/rss/

HDU 1671 - Phone List

Lss233
2021年1月7日 18:01
算法

Given a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let’s say the phone catalogue listed these numbers:

  1. Emergency 911
  2. Alice 97 625 999
  3. Bob 91 12 54 26
    In this case, it’s not