← All problemsSign in

TOTAL SQUARE

Anvi is Rohan's little sister, she is 12 years old and she is new to competitive programming. Anvi is practicing very hard to become a very skilled competitive programmer and win $gold$ medal in IOI . Now Anvi is participating in a contest and the problem that she is trying to solve states: Given an array $A$ of $N$ integers, and the number $K$.The $SQRT$ is the perfect square number of $K$.

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start