Problems > Automorphic Number > Editorial

Automorphic Number — Solution & Editorial

Back to the Problem

Compare N² mod 10digits(N) with N.

Complexity: O(√N) or better