1. The set $A=\left\{n \mid n^{3}<2022<3^{n}, n \in \mathbf{Z}\right\}$, the sum of all elements is $\qquad$
$3^{n}>2022 \Rightarrow n \geqslant 7, n^{3}<2022 \Rightarrow n \leqslant 12$, thus $A=\{7,8,9,10,11,12\}$. Therefore, the sum of all elements in set $A$ is 57.