Back
Close

Get the square root of a String

Statement

 Goal

You get a a line of a String and you have to convert the chararctes of the line to their ASCII number and take the sum of these. After this step, you take the square-root of the sum and round down, if needed.
Input
Line 1: The string to convert
Output
Line 2: The solution as integer
Constraints
2 ≤ N ≤ 100
Example
Input
ABC
Output
14

Game modes
Fastest, Shortest

Test cases
Example Test
Input
ABC
Output
14

Validator 1 Validator
Input
ABCDE
Output
18

CodinGame Test
Input
CodinGame
Output
29

Validator 2 Validator
Input
Websites
Output
28

A whole sentence Test
Input
Welcome to CodinGame!
Output
43

Validator 3 Validator
Input
CodinGame says Hello!!!
Output
44

Sentence with special chars Test
Input
Thi$ !s the l@st Test with special characters.
Output
64

Validator 4 Validator
Input
D0 N07 U53 H@RDC0D3D 0UTPUT!
Output
41

Solution language

Solution

Stub generator input