Let $p,n,q$ be the number of pennies, nickels, and quarters. Then we want $$p+n+q=25\quad\&\quad p+5n+25q=100$$ Subtracting the first from the second shows that $4n+24q=75$. But the left hand is even and the right hand is odd.
If you are used to modular arithmetic, you can just work $\pmod 2$ in which case the first equation reads $p+n+q\equiv 1$ and the second reads $p+n+q\equiv 0$.