[Home|Training|Problems|Contests|C Language] | [Login|Register] |

Problems Status Rank |
Problem 1225
Loli needs your help!
Time Limit: 1000ms
Memory Limit: 65536kb Description
Loli is a lovely girl, who is six years old. She loves watching TV and playing with her good friends. But her mother forces her to do some mathematical exercises. Loli does not like it. If you can do the exercises for her, she will take some cookies to thank you for your help.
Input
Each line of input contains an arithmetic expression. There are at most 5 numbers in one expression. The numbers are positive integers less than 20. There is exactly one arithmetic operator (+,-,*,/) between adjacent numbers. The expressions do not begin with an operator. The results of divisions are always exactly integers. No brackets are used here.
Output
Print the result of each expression on a line by itself.
Sample Input
5+6*3-10 7+9/3 1+6*9/9*2 Sample Output
13 10 13 |

University of Science and Technology of China

Online Judge for ACM/ICPC

Processed in 1.0ms with 1 query(s).

Online Judge for ACM/ICPC

Processed in 1.0ms with 1 query(s).