HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Strings > problem:


50769 - Arithmetic expression

Guest
• Discussion of problem (1)

Section problems

• 50533 - Contacts List
• 50555 - Frequency of Letters
• 50596 - Your Ride Is Here (USACO)
• 50596 - Your Ride Is Here (USACO)
• 50655 - Divisibility by 9
• 50656 - Divisibility by 11
• 50767 - Censor
• 50768 - Where is Waldorf?
• 50769 - Arithmetic expression
• 50762 - Rare name

Feedback

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

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb. Difficulty Alpha

Arithmetic expression

English translation is by Google Russian
Read an arithmetic expression, and calculate the result.

Input
The first line contains an arithmetic expression as follows: NumberOperatioNumber . Number is natural number not exceeding 10000. Operation - one of the symbols +, -, *. There are numbers at the beginning and at the end of the line. And between the numbers, there is an operator. There is no gap between the numbers. It is guaranteed that the string length does not exceed 13 characters.

Output
Calculate and show the result of the given expression.

Input Output
154+3
157

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

www.contester.ru