HDU-4825(數組維護字典樹,更節省內存的寫法)

叔叔傳你過去php 指針動態分配內存: c++ 數組分配內存: web 因此仍是用數組嘛,雖然有點抽象,但簡單易操做,並且代碼短數組 #include<bits/stdc++.h> typedef long long ll; using namespace std; #define maxn 2000005 #define son 2 int ch[maxn][2],sz,val[maxn];//
相關文章
相關標籤/搜索