HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Chapter 1. Introduction to programming > problem:


08. Hypotenuse

Volume problems

• 01. Hello World!
• 02. Arithmetic Operators
• 03. Rectangle
• 04. Circle
• 05. ASCII Characters
• 06. Sum of digits
• 07. Area of triangle
• 08. Hypotenuse
• 09. Name-Surname
• 10. Short name
• 11. Timer

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 100/100/100/100 ms. Memory limit 65000/65000/65000/65000 Kb.

Write a program to calculate hypotenuse of triangle according to the given cathetuses a and b.

Input
Two numbers a and b

Output
Hypotenus length (9 digits after point)

Examples

standart inputstandart output
4 5 6.403124237
3.4 6.4 7.247068373
Для отправки решений необходимо выполнить вход.

www.contester.ru