摘要: Description "题目链接" Solution 01字典树模板题,删除操作用个数组记录下就行了 Code c++ include include include int n,T[9000010][2],v[9000010],A[300010],num[9000010],rt=1,B[3000 阅读全文
posted @ 2018-03-14 21:33 void_f 阅读(436) 评论(0) 推荐(0) 编辑
摘要: Description Zeus 和 Prometheus 做了一个游戏,Prometheus 给 Zeus 一个集合,集合中包含了N个正整数,随后 Prometheus 将向 Zeus 发起M次询问,每次询问中包含一个正整数 S ,之后 Zeus 需要在集合当中找出一个正整数 K ,使得 K 与 阅读全文
posted @ 2018-03-14 20:54 void_f 阅读(154) 评论(0) 推荐(0) 编辑