## Shortest Code Contest

Write a piece of code to solve some mathematical expressions.These mathematical expressions will be very simple - each expression will consist of two numbers and a single operation.

All numbers will be positive integers less than 100, and the only operations will be +,- and *.

There will be multiple test cases - the first line will indicate the number of tests.

Oh, I almost forgot to mention: you can't use semicolons!

Your score will be (86 / N)

^{2}x 10, where N is the number of non-whitespace characters in your code.

### Sample Input

3 6*7 67-25 31+11

### Sample Output

42 42 42

All Submissions

Best Solutions

**Point Value:** 10 (partial)

**Time Limit:** 2.00s

**Memory Limit:** 16M

**Added:** Dec 14, 2008

**Languages Allowed:**

C++03, C, C++11

## Comments (Search)

taimla101on Dec 15, 2008 - 2:22:20 am UTC I have almost 3 points from this problem...taimla101on Dec 16, 2008 - 1:32:19 am UTC Re: I have almost 3 points from this problem...qinhaotianon Dec 15, 2008 - 4:54:34 am UTC Hansonhansonw1on Dec 15, 2008 - 4:56:40 am UTC Re: Hanson(My solution is a bit hackish, works 50% of the time)

qinhaotianon Dec 14, 2008 - 10:10:17 pm UTC Popular ProblemGood way to get a cool number of points though.

Bobon Dec 14, 2008 - 8:54:26 pm UTC questiondAedaLon Dec 14, 2008 - 9:03:12 pm UTC Re: questionzhxl0903on Dec 14, 2008 - 7:47:48 pm UTC are there any decimal numbers?bbi5291on Dec 14, 2008 - 8:21:50 pm UTC Re: are there any decimal numbers?purohit3105on Dec 14, 2008 - 8:13:43 pm UTC Is this possible in pascal?HelloMelloon Dec 14, 2008 - 7:46:32 pm UTC Pascal?