随笔分类 -  字符串---Trie树

摘要:Finding Palindromes Time Limit: 10000MS Memory Limit: 262144K Total Submissions:4710 Accepted: 879 Case Time Limit: 2000MS Description A word is calle 阅读全文
posted @ 2018-11-21 13:46 wyboooo 阅读(320) 评论(0) 推荐(1)
摘要:Phone List Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 34805 Accepted: 9980 Description Given a list of phone numbers, determine if it 阅读全文
posted @ 2018-10-23 18:07 wyboooo 阅读(249) 评论(0) 推荐(0)
摘要:The xor-longest Path Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 10038 Accepted: 2040 Description In an edge-weighted tree, the xor-len 阅读全文
posted @ 2018-10-21 11:25 wyboooo 阅读(176) 评论(0) 推荐(0)
摘要:1602 The XOR Largest Pair 0x10「基本数据结构」例题 描述 在给定的N个整数A1,A2……AN中选出两个进行xor运算,得到的结果最大是多少? 输入格式 第一行一个整数N,第二行N个整数A1~AN。 输出格式 一个整数表示答案。 样例输入 样例输出 数据范围与约定 对于1 阅读全文
posted @ 2018-10-21 10:41 wyboooo 阅读(335) 评论(0) 推荐(0)
摘要:内含字典树创建及查询模板 1601 前缀统计 0x10「基本数据结构」例题 描述 给定N个字符串S1,S2...SN,接下来进行M次询问,每次询问给定一个字符串T,求S1~SN中有多少个字符串是T的前缀。输入字符串的总长度不超过10^6,仅包含小写字母。 输入格式 第一行两个整数N,M。接下来N行每 阅读全文
posted @ 2018-10-21 09:02 wyboooo 阅读(328) 评论(0) 推荐(0)