Plus and Square Root

CodeForces - 716C