HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


Rectangle

Section problems

• Factorial
• Maximum
• Name-Surname
• Decimal to binary
• Heap
• Herons
• Leap Year
• Perfect numbers
• Rectangle
• Bfs
• Chess
• Big Dance
• Binary to decimal
• Circle
• City Tour
• Dijkstra
• Fibonacci Series

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 area and perimeter of rectangle according to sides lengths.

Input
length of side1 and side2 (both integers)
5 3

Output
area and perimeter
15 16

Для отправки решений необходимо выполнить вход.

www.contester.ru