
字典树
文章平均质量分 74
ctsas
这个作者很懒,什么都没留下…
展开
-
补几个题
补两个题A 谍报分析 我写了字典树,虽然对于这个数据范围完全没必要#include<cstdio> #include<cstring> using namespace std;struct node{ int cnt; node *ch[26]; node (){cnt=0;for(int i=0;i<26;i++) ch[i]=NULL;} }root; char str原创 2017-05-18 17:15:54 · 346 阅读 · 0 评论 -
[HDU]6059 Kanade's trio
URL : http://acm.hdu.edu.cn/showproblem.php?pid=6059题意Give you an array A[1..n],you need to calculate how many tuples (i,j,k) satisfy that (i< j< k) and ((A[i] xor A[j])<(A[j] xor A[k]))题解看了别人题解大半天,才终于原创 2017-08-03 11:58:36 · 537 阅读 · 0 评论 -
HPUACM大二周练第二周
URL :https://vjudge.net/contest/188110原创 2017-10-02 23:08:42 · 418 阅读 · 0 评论