Substituting $c=3$ into the expression, we have \begin{align*}
\left(3^3-3(3-1)^3\right)^3 &= \left(27-3(2)^3\right)^3 \\
&= \left(27-3(8)\right)^3 \\
&= \left(27-24\right)^3 \\
&= 3^3 \\
&= \boxed{27}.
\end{align*} The answer is: 27
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
Evaluate \begin{align*}
\left(c^c-c(c-1)^c\right)^c
\end{align*} when $c=3$.

### Answer:
