I was struggling for days with this nice problem:
Let $A$ be a finite commutative ring such that every element of $A$ can be written as product of two elements of $A$. Show that $A$ has a multiplicative unit element.
I need a hint for this problem, thank you very much.
This can be solved using Nakayama's lemma. The first version stated in the linked article is quoted below. The Wikipedia article includes a proof and a reference to Commutative ring theory by Matsumura.
Consider what happens when $R$ is the unitalization$^1$ of $A$, and when $I$ and $M$ are both $A$.
$^1$ The unitalization of $A$ can be defined as $R=A\times \mathbb Z$ with the operations $(a,m)+(b,n)=(a+b,m+n)$ and $(a,m)(b,n)=(ab+mb+na,mn)$.