• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
FightingForWorldFinal
博客园    首页    新随笔    联系   管理    订阅  订阅
2013年11月4日
HDU3724 ( Encoded Barcodes ) 字典树
摘要: 字典树模板,v记录当前节点下单词数,注意与当前节点相同(到当前节点为止)的单词的统计p->v-sumall_vnext#include #include#include#include#includeusing namespace std;#define zero {0}typedef struct Trie{ int v; Trie *next[26];} Trie;char s[100100][100];Trie root;void createTrie(char *str){ int len = strlen(str); Trie *p = &root, *q; ... 阅读全文
posted @ 2013-11-04 22:34 Sky-J 阅读(268) 评论(0) 推荐(0)
出了个指针题,能说出来输出什么,指针没问题了
摘要: #include #include using namespace std ;int f(int ****a,int ***&d){ printf("%d\n",****a); printf("d=%d\n",***d); d=*a; printf("d=%d\n",***d); return 0;}int main(){ int A=9000; int *p=&A; int **p2=&p; int ***p3=&p2; int ****p4=&p3; int B=1000; int *pp1 阅读全文
posted @ 2013-11-04 20:16 Sky-J 阅读(181) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3