Isosceles triangle
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Three positive integers a, b and c are given. Determine if there exists an isosceles triangle with the lengths of these sides.
Input
Three positive integers a, b and c.
Output
Print the sum of the given numbers if there exists an isosceles triangle with side lengths a, b, c, and No otherwise.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 19K
Acceptance rate 20%