A square from squares
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 122.174 megabytes
Find the integer side length of the largest square, that can be obtained from three squares with sides a, b and c, cutting them into rectangles and then putting together to form a square.
Input
Three positive integers a, b and c, not greater than 1000.
Output
Print the integer side length of the largest square.
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 49%